Package com.identityworksllc.iiq.common
Class Triple<A,B,C>
- java.lang.Object
-
- com.identityworksllc.iiq.common.Triple<A,B,C>
-
- Type Parameters:
A
- The first item typeB
- The second item typeC
- The third item type
- All Implemented Interfaces:
Serializable
public class Triple<A,B,C> extends Object implements Serializable
Extends Pair by adding one more item- 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 itemB
getSecond()
Gets the second itemC
getThird()
Gets the third itemint
hashCode()
<R> R
map(TriFunction<? super A,? super B,? super C,R> mapping)
Maps this object to another value using the given TriFunction or lambda equivalent.static <X,Y,Z>
Triple<X,Y,Z>of(X first, Y second, Z third)
Constructs a new triple of the three items givenString
toString()
-
-
-
Method Detail
-
of
public static <X,Y,Z> Triple<X,Y,Z> of(X first, Y second, Z third)
Constructs a new triple of the three items given- Parameters:
first
- The first timesecond
- The second itemthird
- The third item- Returns:
- A typed Triple containing those three items
-
map
public <R> R map(TriFunction<? super A,? super B,? super C,R> mapping) throws sailpoint.tools.GeneralException
Maps this object to another value using the given TriFunction or lambda equivalent.- Type Parameters:
R
- The output type, defined by the mapping object’s type- Parameters:
mapping
- The mapping to apply- Returns:
- The output of the mapping
- Throws:
sailpoint.tools.GeneralException
- if anything fails during mapping
-
-