Package org.drasyl.util
Class Triple<A,B,C>  
java.lang.Object
org.drasyl.util.Triple<A,B,C>  
- All Implemented Interfaces:
 Serializable
A tuple of three elements.
 
Inspired by: https://github.com/javatuples/javatuples/blob/master/src/main/java/org/javatuples/Triplet.java
- See Also:
 
- 
Method Summary
 
- 
Method Details
- 
hashCode
public int hashCode() - 
equals
 - 
toString
 - 
first
- Returns:
 - the first element
 
 - 
second
- Returns:
 - the second element
 
 - 
third
- Returns:
 - the third element
 
 - 
of
Obtains a tuple of three elements inferring the generic types.
This factory allows the triple to be created using inference to obtain the generic types.
- Type Parameters:
 A- the first element typeB- the second element typeC- the third element type- Parameters:
 first- the first element, may be nullsecond- the second element, may be nullthird- the third element, may be null- Returns:
 - a triple formed from the three parameters, not null
 
 
 -