Class Tuple0

    • Field Detail

      • INSTANCE

        public static Tuple0 INSTANCE
        The constant INSTANCE.
    • Method Detail

      • array

        public Object[] array()
        Description copied from class: Tuple
        The tuple as an array of objects
        Specified by:
        array in class Tuple
        Returns:
        an array representing the items in the tuple
      • copy

        public Tuple0 copy()
        Description copied from interface: Copyable

        Makes a copy of this object.

        Returns:
        A copy of this object.
      • degree

        public int degree()
        Description copied from class: Tuple
        The number of items in the tuple
        Specified by:
        degree in class Tuple
        Returns:
        the number of items in the tuple
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Tuple
      • mapValues

        public Tuple mapValues​(@NonNull
                               @NonNull Function<Object,​?> function)
        Description copied from class: Tuple
        Maps the values of the tuple to another data type
        Overrides:
        mapValues in class Tuple
        Parameters:
        function - the mapping function
        Returns:
        A new tuple of same degree whose values are the result of the mapping function applied to the this tuple's elements.