Class Tuple1<T1>

  • All Implemented Interfaces:
    Tuple, java.lang.Comparable<Tuple1<T1>>

    public final class Tuple1<T1>
    extends java.lang.Object
    implements Tuple, java.lang.Comparable<Tuple1<T1>>
    A Tuple that has 1 value.
    Author:
    Andre Breves
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(Tuple1<T1> other)  
      int degree()
      Returns the value count of this Tuple.
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      static <T1> Tuple1<T1> of​(T1 v1)
      Returns a Tuple that has 1 value.
      T1 v1()
      Returns the 1st value of this Tuple.
      • Methods inherited from class java.lang.Object

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

      • of

        public static <T1> Tuple1<T1> of​(T1 v1)
        Returns a Tuple that has 1 value.
      • v1

        public T1 v1()
        Returns the 1st value of this Tuple.
      • degree

        public int degree()
        Description copied from interface: Tuple
        Returns the value count of this Tuple.
        Specified by:
        degree in interface Tuple
      • hashCode

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

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

        public int compareTo​(Tuple1<T1> other)
        Specified by:
        compareTo in interface java.lang.Comparable<T1>