Package org.spongepowered.api.util
Class Tuple<K,V> 
java.lang.Object
org.spongepowered.api.util.Tuple<K,V> 
- Type Parameters:
- K- The key
- V- The value
A tuple of objects.
- 
Constructor Details- 
TupleCreates a newTuple.- Parameters:
- first- The first object
- second- The second object
 
 
- 
- 
Method Details- 
of- Type Parameters:
- K- The type of first object
- V- The type of second object
- Parameters:
- first- The first object
- second- The second object
- Returns:
- The new Tuple
 
- 
firstGets the first object, otherwise known as "key".- Returns:
- The first object
 
- 
secondGets the second object, otherwise known as "value".- Returns:
- The value
 
- 
toString
- 
hashCodepublic int hashCode()
- 
equals
 
-