Package org.compiere.util
Class KeyNamePair
- java.lang.Object
-
- org.compiere.util.NamePair
-
- org.compiere.util.KeyNamePair
-
- All Implemented Interfaces:
Serializable,Comparable<Object>,Comparator<Object>
public final class KeyNamePair extends NamePair
(Numeric) Key Name Pair- Version:
- $Id: KeyNamePair.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 KeyNamePairEMPTY
-
Constructor Summary
Constructors Constructor Description KeyNamePair(int key, String name)Constructor KeyValue Pair -
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)EqualsStringgetID()Get ID (key as String)intgetKey()Get KeyinthashCode()Return Hashcode of key-
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 KeyNamePair EMPTY
-
-
Constructor Detail
-
KeyNamePair
public KeyNamePair(int key, String name)Constructor KeyValue Pair -- Parameters:
key- Key (-1 is considered as null)name- string representation
-
-