Class Pair<F,​S>


  • public class Pair<F,​S>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(@NonNull F first, @NonNull S second)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      @NonNull F getFirst()  
      @NonNull S getSecond()  
      int hashCode()  
      <F2> @NonNull Pair<F2,​S> mapFirst​(java.util.function.Function<F,​F2> f)  
      <S2> @NonNull Pair<F,​S2> mapSecond​(java.util.function.Function<S,​S2> f)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Pair

        public Pair​(@NonNull F first,
                    @NonNull S second)
    • Method Detail

      • getFirst

        public final @NonNull F getFirst()
      • getSecond

        public final @NonNull S getSecond()
      • mapFirst

        public final <F2> @NonNull Pair<F2,​S> mapFirst​(java.util.function.Function<F,​F2> f)
      • mapSecond

        public final <S2> @NonNull Pair<F,​S2> mapSecond​(java.util.function.Function<S,​S2> f)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object