Class Tuple<A,​B>

java.lang.Object
com.igormaznitsa.mvngolang.utils.Tuple<A,​B>

public class Tuple<A,​B>
extends java.lang.Object
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    int hashCode()  
    A left()  
    static <A,​ B> Tuple<A,​B> of​(A left, B right)  
    B right()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • of

      @Nonnull public static <A,​ B> Tuple<A,​B> of​(@Nonnull A left, @Nonnull B right)
    • equals

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

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

      @Nonnull public A left()
    • right

      @Nonnull public B right()