Class Tuple2<A,​B>


  • public class Tuple2<A,​B>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      A _1  
      B _2  
    • Constructor Summary

      Constructors 
      Constructor Description
      Tuple2​(A a, B b)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      void exec​(java.util.function.BiConsumer<? super A,​? super B> f)  
      A get1()  
      B get2()  
      int hashCode()  
      <T> T map​(java.util.function.BiFunction<? super A,​? super B,​? extends T> f)  
      boolean test​(java.util.function.BiPredicate<? super A,​? super B> f)  
      java.lang.String toString()  
      Tuple2<A,​B> update1​(A a)  
      Tuple2<A,​B> update2​(B b)  
      • Methods inherited from class java.lang.Object

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

      • _1

        public final A _1
      • _2

        public final B _2
    • Constructor Detail

      • Tuple2

        Tuple2​(A a,
               B b)
    • Method Detail

      • get1

        public A get1()
      • get2

        public B get2()
      • update1

        public Tuple2<A,​B> update1​(A a)
      • update2

        public Tuple2<A,​B> update2​(B b)
      • map

        public <T> T map​(java.util.function.BiFunction<? super A,​? super B,​? extends T> f)
      • test

        public boolean test​(java.util.function.BiPredicate<? super A,​? super B> f)
      • exec

        public void exec​(java.util.function.BiConsumer<? super A,​? super B> f)
      • equals

        public boolean equals​(java.lang.Object other)
        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