Compiere Looks 1.2.1

org.compiere.util
Class ValueNamePair

java.lang.Object
  |
  +--org.compiere.util.NamePair
        |
        +--org.compiere.util.ValueNamePair
All Implemented Interfaces:
Comparable, Comparator, Serializable

public final class ValueNamePair
extends NamePair

(String) Value Name Pair

Version:
$Id: ValueNamePair.java,v 1.3 2002/06/24 05:02:27 jjanke Exp $
Author:
Jorg Janke
See Also:
Serialized Form

Constructor Summary
ValueNamePair(String value, String name)
          Construct KeyValue Pair
 
Method Summary
 boolean equals(Object obj)
          Equals
 String getID()
          Get ID
 String getValue()
          Get Value
 int hashCode()
          Return Hashcode of value
 
Methods inherited from class org.compiere.util.NamePair
compare, compareTo, getName, toString, toStringX
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueNamePair

public ValueNamePair(String value,
                     String name)
Construct KeyValue Pair

Parameters:
value - value
name - string representation
Method Detail

getValue

public String getValue()
Get Value

Returns:
Value

getID

public String getID()
Get ID

Specified by:
getID in class NamePair
Returns:
Value

equals

public boolean equals(Object obj)
Equals

Specified by:
equals in interface Comparator
Overrides:
equals in class Object
Parameters:
obj - Object
Returns:
true, if equal

hashCode

public int hashCode()
Return Hashcode of value

Overrides:
hashCode in class Object
Returns:
hascode

Compiere Looks 1.2.1

Copyright (c) 1999-2003 ComPiere, Inc. - Author: Jorg Janke