Package org.dizitart.no2.common.tuples
Class Quintet<A,B,C,D,E>
- java.lang.Object
-
- org.dizitart.no2.common.tuples.Quintet<A,B,C,D,E>
-
- Type Parameters:
A
- the type of the first elementB
- the type of the second elementC
- the type of the third elementD
- the type of the fourth elementE
- the type of the fifth element
- All Implemented Interfaces:
Serializable
public class Quintet<A,B,C,D,E> extends Object implements Serializable
A tuple of five elements.- Since:
- 4.0
- Author:
- Anindya Chatterjee
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
E
getFifth()
A
getFirst()
D
getFourth()
B
getSecond()
C
getThird()
int
hashCode()
static <A,B,C,D,E>
Quintet<A,B,C,D,E>quintet(A a, B b, C c, D d, E e)
Creates a new quintet.void
setFifth(E fifth)
void
setFirst(A first)
void
setFourth(D fourth)
void
setSecond(B second)
void
setThird(C third)
String
toString()
-
-
-
Method Detail
-
quintet
public static <A,B,C,D,E> Quintet<A,B,C,D,E> quintet(A a, B b, C c, D d, E e)
Creates a new quintet.- Type Parameters:
A
- the type parameterB
- the type parameterC
- the type parameterD
- the type parameterE
- the type parameter- Parameters:
a
- the ab
- the bc
- the cd
- the de
- the e- Returns:
- the quintet
-
getFirst
public A getFirst()
-
getSecond
public B getSecond()
-
getThird
public C getThird()
-
getFourth
public D getFourth()
-
getFifth
public E getFifth()
-
setFirst
public void setFirst(A first)
-
setSecond
public void setSecond(B second)
-
setThird
public void setThird(C third)
-
setFourth
public void setFourth(D fourth)
-
setFifth
public void setFifth(E fifth)
-
-