Package com.github.tadukoo.util.tuple
Class Triple<L,M,R>
java.lang.Object
com.github.tadukoo.util.tuple.Triple<L,M,R>
- Type Parameters:
L
- The left item typeM
- The middle item typeR
- The right item type
A tuple class for holding 3 items of specified type.
- Version:
- 0.1-Alpha-SNAPSHOT
- Author:
- Logan Ferree (Tadukoo)
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
left
The left item in the tuple -
middle
The middle item in the tuple -
right
The right item in the tuple
-
-
Constructor Details
-
Triple
Constructs a Triple of the three given objects.- Parameters:
left
- The left item in the triplemiddle
- The middle item in the tripleright
- The right item in the triple
-
-
Method Details
-
of
Constructs a Triple of the three given objects.- Type Parameters:
L
- The type of the left itemM
- The type of the middle itemR
- The type of the right item- Parameters:
left
- The left item in the Triplemiddle
- The middle item in the Tripleright
- The right item in the Triple- Returns:
- A Triple containing the three given items
-
getLeft
- Returns:
- The left item from the Triple
-
setLeft
Sets the left item of the Triple- Parameters:
left
- The left item to set
-
getMiddle
- Returns:
- The middle item from the Triple
-
setMiddle
Sets the middle item of the Triple- Parameters:
middle
- The middle item to set
-
getRight
- Returns:
- The right item from the Triple
-
setRight
Sets the right item of the Triple- Parameters:
right
- The right item to set
-
toString
-