de.uni_bremen.st.rcf.util
Class Pair<T1,T2>

java.lang.Object
  extended by de.uni_bremen.st.rcf.util.Pair<T1,T2>

public class Pair<T1,T2>
extends Object

Definition of a pair, linke Map.Entry but accessible from outside the standard lib.


Field Summary
 T1 first
           
 T2 second
           
 
Constructor Summary
Pair(Pair<T1,T2> p)
           
Pair(T1 first, T2 second)
           
 
Method Summary
static
<E> Pair<E,E>
toPair(E[] both)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

first

public T1 first

second

public T2 second
Constructor Detail

Pair

public Pair(T1 first,
            T2 second)

Pair

public Pair(Pair<T1,T2> p)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

toPair

public static <E> Pair<E,E> toPair(E[] both)


Copyright © 2011. All Rights Reserved.