|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.javaranch.common.NameIDPair
| Constructor Summary | |
NameIDPair(java.lang.String name,
int id)
|
|
| Method Summary | |
int |
getID()
|
java.lang.String |
getName()
|
static int[] |
toIntArray(NameIDPair[] pairs)
Get just the ID's from an array of NameIDPair objects. |
static KeyValuePair[] |
toKeyValuePairArray(NameIDPair[] nip)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NameIDPair(java.lang.String name,
int id)
| Method Detail |
public java.lang.String getName()
public int getID()
public static int[] toIntArray(NameIDPair[] pairs)
public static KeyValuePair[] toKeyValuePairArray(NameIDPair[] nip)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||