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 ValueNamePairEMPTY
-
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 booleanequals(Object obj)EqualsStringgetID()Get IDStringgetValue()Get ValueObjectgetValueObject()Get the Object representation of the valueinthashCode()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:
equalsin interfaceComparator<Object>- Overrides:
equalsin classObject- Parameters:
obj- Object- Returns:
- true, if equal
-
getValueObject
public Object getValueObject()
Get the Object representation of the value- Returns:
- value
-
-