Class Trio<T,K,V>
java.lang.Object
ushiosan.jvm_utilities.lang.collection.elements.Pair<T,K>
ushiosan.jvm_utilities.lang.collection.elements.Trio<T,K,V>
- Type Parameters:
T- first value typeK- second value typeV- third value type
Data structure that represents 3 values within the same object.
This class is very similar to what we can find with class
Pair- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ushiosan.jvm_utilities.lang.collection.elements.Pair
copyOf, extractPairs, extractPairs, of, toString
-
Field Details
-
third
Third element
-
-
Constructor Details
-
Trio
Default constructor- Parameters:
first- first elementsecond- second elementthird- third element
-
-
Method Details
-
of
Shortcut trio instance- Type Parameters:
T- generic first typeK- generic second typeV- generic third type- Parameters:
first- first valuesecond- second valuethird- third value- Returns:
- instance of
Trioclass
-
of
- Type Parameters:
T- generic first typeK- generic second typeV- generic third type- Parameters:
pair- the pair object to copy- Returns:
- instance of
Trioclass
-