railo.commons.lang
Class Pair<K,V>

java.lang.Object
  extended by railo.commons.lang.Pair<K,V>
All Implemented Interfaces:
Serializable

public final class Pair<K,V>
extends Object
implements Serializable

a Simple name value Pair

See Also:
Serialized Form

Constructor Summary
Pair(K name, V value)
          Constructor of the class
 
Method Summary
 K getName()
           
 V getValue()
           
 void setName(K name)
           
 void setValue(V value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(K name,
            V value)
Constructor of the class

Parameters:
name -
value -
Method Detail

getName

public K getName()
Returns:
the name

setName

public void setName(K name)
Parameters:
name - the name to set

toString

public String toString()
Overrides:
toString in class Object

getValue

public V getValue()
Returns:
the value

setValue

public void setValue(V value)
Parameters:
value - the value to set


Copyright © 2012 Railo