Package com.identityworksllc.iiq.common
Class Quad<A,B,C,D>
- java.lang.Object
-
- com.identityworksllc.iiq.common.Quad<A,B,C,D>
-
- Type Parameters:
A
- The first item typeB
- The second item typeC
- The third item typeD
- The fourth item type
- All Implemented Interfaces:
Serializable
public class Quad<A,B,C,D> extends Object implements Serializable
A group of four items- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
A
getFirst()
Gets the first item in the quadD
getFourth()
Gets the fourth item in the quadB
getSecond()
Gets the second item in the quadC
getThird()
Gets the third item in the quadint
hashCode()
static <X,Y,Z,Q>
Quad<X,Y,Z,Q>of(X first, Y second, Z third, Q fourth)
Constructs a new quad tuple of the four items givenString
toString()
-
-
-
Method Detail
-
of
public static <X,Y,Z,Q> Quad<X,Y,Z,Q> of(X first, Y second, Z third, Q fourth)
Constructs a new quad tuple of the four items given- Type Parameters:
X
- The first item typeY
- The second item typeZ
- The third item typeQ
- The fourth item type- Parameters:
first
- The first timesecond
- The second itemthird
- The third itemfourth
- The fourth item- Returns:
- A typed Quad containing those three items
-
-