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>
public final class ValueNamePair extends NamePair
(String) Value Name Pair- Version:
- $Id: ValueNamePair.java,v 1.2 2006/07/30 00:52:23 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ValueNamePair
EMPTY
-
Constructor Summary
Constructors Constructor Description ValueNamePair(String value, String name)
Construct KeyValue Pair
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
EqualsString
getID()
Get IDString
getValue()
Get ValueObject
getValueObject()
Get the Object representation of the valueint
hashCode()
Return Hashcode of value-
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 Detail
-
EMPTY
public static final ValueNamePair EMPTY
-
-
Method Detail
-
getValue
public String getValue()
Get Value- Returns:
- Value
-
equals
public boolean equals(Object obj)
Equals- Specified by:
equals
in interfaceComparator<Object>
- Overrides:
equals
in classObject
- Parameters:
obj
- Object- Returns:
- true, if equal
-
getValueObject
public Object getValueObject()
Get the Object representation of the value- Returns:
- value
-
-