|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.util.NamePair
public abstract class NamePair
Name Pair Interface
| Constructor Summary | |
|---|---|
protected |
NamePair(String name)
Protected Constructor |
| Method Summary | |
|---|---|
int |
compare(NamePair o1,
NamePair o2)
Comparator Interface (based on toString value) |
int |
compare(Object o1,
Object o2)
Comparator Interface (based on toString value) |
int |
compareTo(NamePair o)
Comparable Interface (based on toString value) |
int |
compareTo(Object o)
Comparable Interface (based on toString value) |
abstract String |
getID()
Returns Key or Value as String |
String |
getName()
Returns display value |
String |
toString()
To String - returns name |
String |
toStringX()
To String - detail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
protected NamePair(String name)
name - (Display) Name of the Pair| Method Detail |
|---|
public String getName()
public abstract String getID()
public int compare(Object o1,
Object o2)
compare in interface Comparator<Object>o1 - Object 1o2 - Object 2
public int compare(NamePair o1,
NamePair o2)
o1 - Object 1o2 - Object 2
public int compareTo(Object o)
compareTo in interface Comparableo - the Object to be compared.
public int compareTo(NamePair o)
o - the Object to be compared.
public String toString()
toString in class Objectpublic String toStringX()
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||