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.Object3-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 booleanequals(java.lang.Object obj)Afirst()inthashCode()booleanisNull()Bsecond()voidsetFirst(A first)voidsetSecond(B second)voidsetThird(C third)Cthird()java.lang.StringtoString()
-
-
-
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:
truewhen all three elements arenull.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-