com.javaranch.common
Class NameIDPair

java.lang.Object
  |
  +--com.javaranch.common.NameIDPair
All Implemented Interfaces:
java.io.Serializable

public class NameIDPair
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

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

NameIDPair

public NameIDPair(java.lang.String name,
                  int id)
Method Detail

getName

public java.lang.String getName()

getID

public int getID()

toIntArray

public static int[] toIntArray(NameIDPair[] pairs)
Get just the ID's from an array of NameIDPair objects.


toKeyValuePairArray

public static KeyValuePair[] toKeyValuePairArray(NameIDPair[] nip)


Copyright ©2004 Paul Wheaton All Rights Reserved