|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.util.NamePair
org.compiere.util.KeyNamePair
public final class KeyNamePair
(Numeric) Key Name Pair
| Constructor Summary | |
|---|---|
KeyNamePair()
Use for GWT serialization |
|
KeyNamePair(int key,
String name)
Constructor KeyValue Pair - |
|
| Method Summary | |
|---|---|
int |
compare(KeyNamePair p1,
KeyNamePair p2)
Comparator Interface (based on Name/ID value) |
int |
compareTo(KeyNamePair o)
Comparable Interface (based on Name/ID value) |
boolean |
equals(Object obj)
Equals |
String |
getID()
Get ID (key as String) |
int |
getKey()
Get Key |
int |
hashCode()
Return Hashcode of key |
| Methods inherited from class org.compiere.util.NamePair |
|---|
compare, compareTo, getName, indexOfKey, indexOfValue, isSortByName, setName, setSortByName, toString, toStringX |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KeyNamePair()
public KeyNamePair(int key,
String name)
key - Key (-1 is considered as null)name - string representation| Method Detail |
|---|
public int getKey()
public String getID()
getID in class NamePairpublic boolean equals(Object obj)
equals in interface Comparator<NamePair>equals in class Objectobj - object
public int compare(KeyNamePair p1,
KeyNamePair p2)
p1 - Value 1p2 - Value 2
public int compareTo(KeyNamePair o)
o - the Object to be compared.
public int hashCode()
hashCode in class Object
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||