First - The type of the first value.Second - The type of the second value.Third - The type of the third value.public final class Triple<First,Second,Third> extends Object
Triple is a simple immutable container class that holds three
values.| Constructor and Description |
|---|
Triple(First first,
Second second,
Third third)
Creates a new
Triple. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
First |
getFirst()
Returns the first value this
Triple has been created with. |
Second |
getSecond()
Returns the second value this
Triple has been created with. |
Third |
getThird()
Returns the third value this
Triple has been created with. |
int |
hashCode() |
String |
toString() |
Triple<First,Second,Third> |
withFirst(First first)
|
Triple<First,Second,Third> |
withSecond(Second second)
|
Triple<First,Second,Third> |
withThird(Third third)
|
public First getFirst()
Triple has been created with.public Triple<First,Second,Third> withFirst(First first)
first - The first value to be used.Triple.public Second getSecond()
Triple has been created with.public Triple<First,Second,Third> withSecond(Second second)
second - The second value to be used.Triple.public Third getThird()
Triple has been created with.public Triple<First,Second,Third> withThird(Third third)
third - The third value to be used.Triple.Copyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.