Class Triple<A,​B,​C>

  • Type Parameters:
    A - The first item type
    B - The second item type
    C - 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 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 time
        second - The second item
        third - The third item
        Returns:
        A typed Triple containing those three items
      • getFirst

        public A getFirst()
        Gets the first item
        Returns:
        The first item
      • getSecond

        public B getSecond()
        Gets the second item
        Returns:
        The second item
      • getThird

        public C getThird()
        Gets the third item
        Returns:
        The third item
      • 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