Package org.compiere.util
Class ValueNamePair
java.lang.Object
org.compiere.util.NamePair
org.compiere.util.ValueNamePair
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,Comparator<Object>
Value Name Pair (String key and name)
- Version:
- $Id: ValueNamePair.java,v 1.2 2006/07/30 00:52:23 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.compiere.util.NamePair
compare, compare, compareTo, compareTo, getName, toString, toStringX
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
EMPTY
-
-
Constructor Details
-
ValueNamePair
Construct ValueNamePair Pair- Parameters:
value
- valuename
- string representation
-
-
Method Details
-
getValue
Get Key Value- Returns:
- Key Value
-
getID
Get String ID -
equals
Equals- Specified by:
equals
in interfaceComparator<Object>
- Overrides:
equals
in classObject
- Parameters:
obj
- Object- Returns:
- true, if equal
-
getValueObject
Get the Object representation of the value- Returns:
- value
-
hashCode
public int hashCode()Return Hashcode of value
-