Package org.checkerframework.javacutil
Class Pair<V1,V2>
- java.lang.Object
 - 
- org.checkerframework.javacutil.Pair<V1,V2>
 
 
- 
- Type Parameters:
 V1- the type of the first element of the pairV2- the type of the second element of the pair
@Deprecated public class Pair<V1,V2> extends java.lang.ObjectDeprecated.use org.plumelib.util.IPairImmutable pair class. 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T1 extends java.lang.Cloneable,T2 extends java.lang.Cloneable>
Pair<T1,T2>cloneElements(Pair<T1,T2> orig)Deprecated.Returns a copy of this in which each element is a clone of the corresponding element of this.static <T1 extends DeepCopyable<T1>,T2 extends DeepCopyable<T2>>
Pair<T1,T2>deepCopy(Pair<T1,T2> orig)Deprecated.Returns a deep copy of this: each element is a deep copy (according to theDeepCopyableinterface) of the corresponding element of this.static <T1 extends DeepCopyable<T1>,T2>
Pair<T1,T2>deepCopyFirst(Pair<T1,T2> orig)Deprecated.Returns a copy, where thefirstelement is deep: thefirstelement is a deep copy (according to theDeepCopyableinterface), and thesecondelement is identical to the argument.static <T1,T2 extends DeepCopyable<T2>>
Pair<T1,T2>deepCopySecond(Pair<T1,T2> orig)Deprecated.Returns a copy, where thesecondelement is deep: thefirstelement is identical to the argument, and thesecondelement is a deep copy (according to theDeepCopyableinterface).booleanequals(@Nullable java.lang.Object obj)Deprecated.inthashCode()Deprecated.static <T1,T2>
Pair<T1,T2>of(T1 first, T2 second)Deprecated.java.lang.StringtoString()Deprecated. 
 - 
 
- 
- 
Method Detail
- 
of
public static <T1,T2> Pair<T1,T2> of(T1 first, T2 second)
Deprecated. 
- 
cloneElements
public static <T1 extends java.lang.Cloneable,T2 extends java.lang.Cloneable> Pair<T1,T2> cloneElements(Pair<T1,T2> orig)
Deprecated.Returns a copy of this in which each element is a clone of the corresponding element of this.clone()may or may not itself make a deep copy of the elements.- Type Parameters:
 T1- the type of the first element of the pairT2- the type of the second element of the pair- Parameters:
 orig- a pair- Returns:
 - a copy of 
orig, with all elements cloned 
 
- 
deepCopy
public static <T1 extends DeepCopyable<T1>,T2 extends DeepCopyable<T2>> Pair<T1,T2> deepCopy(Pair<T1,T2> orig)
Deprecated.Returns a deep copy of this: each element is a deep copy (according to theDeepCopyableinterface) of the corresponding element of this.- Type Parameters:
 T1- the type of the first element of the pairT2- the type of the second element of the pair- Parameters:
 orig- a pair- Returns:
 - a deep copy of 
orig 
 
- 
deepCopyFirst
public static <T1 extends DeepCopyable<T1>,T2> Pair<T1,T2> deepCopyFirst(Pair<T1,T2> orig)
Deprecated.Returns a copy, where thefirstelement is deep: thefirstelement is a deep copy (according to theDeepCopyableinterface), and thesecondelement is identical to the argument.- Type Parameters:
 T1- the type of the first element of the pairT2- the type of the second element of the pair- Parameters:
 orig- a pair- Returns:
 - a copy of 
orig, where the first element is a deep copy 
 
- 
deepCopySecond
public static <T1,T2 extends DeepCopyable<T2>> Pair<T1,T2> deepCopySecond(Pair<T1,T2> orig)
Deprecated.Returns a copy, where thesecondelement is deep: thefirstelement is identical to the argument, and thesecondelement is a deep copy (according to theDeepCopyableinterface).- Type Parameters:
 T1- the type of the first element of the pairT2- the type of the second element of the pair- Parameters:
 orig- a pair- Returns:
 - a copy of 
orig, where the second element is a deep copy 
 
- 
equals
@Pure public boolean equals(@Nullable java.lang.Object obj)
Deprecated.- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
@Pure public int hashCode()
Deprecated.- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
@SideEffectFree public java.lang.String toString()
Deprecated.- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -