Class FlatTuple0

  • All Implemented Interfaces:
    ITuple

    public final class FlatTuple0
    extends BaseFlatTuple
    Flat tuple with statically known arity of 0.
    Since:
    1.7
    • Field Detail

      • INSTANCE

        protected static final FlatTuple0 INSTANCE
    • Method Detail

      • getSize

        public int getSize()
        Returns:
        number of elements
      • get

        public java.lang.Object get​(int index)
        Returns:
        the element at the specified index
      • getElements

        public java.lang.Object[] getElements()
        Description copied from class: AbstractTuple
        As the tuple is supposed to be immutable, do not modify the returned array.
        Specified by:
        getElements in interface ITuple
        Overrides:
        getElements in class AbstractTuple
        Returns:
        the array containing all elements of this Tuple