Class Pair<S,​T>

  • Type Parameters:
    S - type of the first value
    T - type of the second value

    public class Pair<S,​T>
    extends Object

    Pair class to store two value

    Since:
    2.0
    Author:
    Andreas Pointner
    • Constructor Detail

      • Pair

        public Pair()
    • Method Detail

      • toMap

        public static <S,​T> Collector<Pair<S,​T>,​?,​Map<S,​T>> toMap()
        A collector to create a Map from a Stream of Pairs.
        Type Parameters:
        S - type of the first element
        T - type of the second element
        Returns:
        pair collector