T1
- The type of the first object.T2
- The type of the second object.T3
- The type of the third object.public class CachedTriple<T1,T2,T3> extends Object implements Serializable
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).
Modifier and Type | Field and Description |
---|---|
protected T1 |
a |
protected T2 |
b |
protected T3 |
c |
Constructor and Description |
---|
CachedTriple(T1 a,
T2 b,
T3 c) |
Modifier and Type | Method and Description |
---|---|
int |
calculateHashCode()
Overridden hashcode.
|
boolean |
equals(Object obj) |
T1 |
getA() |
CachedPair<T1,T2> |
getAB() |
CachedPair<T1,T3> |
getAC() |
T2 |
getB() |
CachedPair<T2,T3> |
getBC() |
T3 |
getC() |
int |
hashCode() |
String |
toString() |
public T1 getA()
public T2 getB()
public T3 getC()
public CachedPair<T1,T2> getAB()
public CachedPair<T1,T3> getAC()
public CachedPair<T2,T3> getBC()
public int calculateHashCode()
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.