Class CachedTriple<T1,T2,T3>
java.lang.Object
org.tribuo.util.infotheory.impl.CachedTriple<T1,T2,T3>
- Type Parameters:
T1
- The type of the first object.T2
- The type of the second object.T3
- The type of the third object.
- All Implemented Interfaces:
Serializable
A triple of things. The inner pairs are cached, as is the hashcode.
The cache is calculated on construction, and the objects inside the triple are thus expected to be immutable. If they aren't then the behaviour is undefined (and you shouldn't use this class).
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
a
-
b
-
c
-
-
Constructor Details
-
CachedTriple
-
-
Method Details
-
getA
-
getB
-
getC
-
getAB
-
getAC
-
getBC
-
hashCode
-
calculateHashCode
public int calculateHashCode()Overridden hashcode. Checks to see if the types are ints or longs, and runs them through the mixing function if they are. Then XORs the two hashcodes together.- Returns:
- A 32-bit integer.
-
equals
-
toString
-