Class ImmutablePair<T>

    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      ImmutablePair​(T t1, T t2)  
    • Constructor Detail

      • ImmutablePair

        public ImmutablePair​(T t1,
                             T t2)
    • Method Detail

      • first

        public T first()
        Specified by:
        first in interface Pair<T>
      • second

        public T second()
        Specified by:
        second in interface Pair<T>
      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>
        Specified by:
        iterator in interface Pair<T>
      • map

        public static <T,​R> Pair<R> map​(Pair<T> pair,
                                              java.util.function.Function<T,​R> func)