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