Package com.im.commons
Class Triplet<A,B,C>
- java.lang.Object
-
- com.im.commons.Triplet<A,B,C>
-
- Type Parameters:
A
- type of firstB
- type of secondC
- type of third
public final class Triplet<A,B,C> extends java.lang.Object
3-elements utility object.The elements of the triplet might benull
.- Since:
- 20.12.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
A
first()
int
hashCode()
boolean
isNull()
B
second()
void
setFirst(A first)
void
setSecond(B second)
void
setThird(C third)
C
third()
java.lang.String
toString()
-
-
-
Method Detail
-
setFirst
public void setFirst(A first)
-
setSecond
public void setSecond(B second)
-
setThird
public void setThird(C third)
-
first
public A first()
-
second
public B second()
-
third
public C third()
-
isNull
public boolean isNull()
- Returns:
true
when all three elements arenull
.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-