Package com.strobel.core
Class Triple<TFirst,TSecond,TThird>
- java.lang.Object
-
- com.strobel.core.Triple<TFirst,TSecond,TThird>
-
-
Field Summary
Fields Modifier and Type Field Description private int
_cachedHashCode
private TFirst
_first
private TSecond
_second
private TThird
_third
private static int
FirstNullHash
private static int
SecondNullHash
private static int
ThirdNullHash
private static int
UninitializedHashCode
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Triple<TFirst,TSecond,TThird> o)
static <TFirst,TSecond,TThird>
Triple<TFirst,TSecond,TThird>create(TFirst first, TSecond second, TThird third)
boolean
equals(Triple<? extends TFirst,? extends TSecond,? extends TThird> other)
boolean
equals(java.lang.Object obj)
TFirst
getFirst()
TSecond
getSecond()
TThird
getThird()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
UninitializedHashCode
private static final int UninitializedHashCode
- See Also:
- Constant Field Values
-
FirstNullHash
private static final int FirstNullHash
- See Also:
- Constant Field Values
-
SecondNullHash
private static final int SecondNullHash
- See Also:
- Constant Field Values
-
ThirdNullHash
private static final int ThirdNullHash
- See Also:
- Constant Field Values
-
_first
private final TFirst _first
-
_second
private final TSecond _second
-
_third
private final TThird _third
-
_cachedHashCode
private int _cachedHashCode
-
-
Method Detail
-
getFirst
public final TFirst getFirst()
-
getSecond
public final TSecond getSecond()
-
getThird
public final TThird getThird()
-
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
equals
public final boolean equals(Triple<? extends TFirst,? extends TSecond,? extends TThird> other)
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(Triple<TFirst,TSecond,TThird> o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<TFirst>
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
create
public static <TFirst,TSecond,TThird> Triple<TFirst,TSecond,TThird> create(TFirst first, TSecond second, TThird third)
-
-