Class Tuple<K,V>
java.lang.Object
org.deltava.util.Tuple<K,V>
- Type Parameters:
K- the first value typeV- the second value type
- All Implemented Interfaces:
Serializable, Comparable<Tuple<K,?>>, Cacheable
A utility class to create a tuple.
- Since:
- 6.0
- Version:
- 12.4
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Tuple
-
-
Method Details
-
getLeft
-
getRight
-
isPopulated
public boolean isPopulated()Returns whether both values are populated.- Returns:
- TRUE if both are non-null, otherwise FALSE
-
create
-
toString
-
hashCode
-
cacheKey
-
compareTo
- Specified by:
compareToin interfaceComparable<K>
-