Class DynamicTuple

  • All Implemented Interfaces:
    Tuple

    public final class DynamicTuple
    extends Object
    implements Tuple
    Dynamic sized tuple backed by a Object[]
    • Method Detail

      • of

        public static @NonNull DynamicTuple of​(@NonNull Object... elements)
        Create a new dynamic tuple, containing the given elements
        Parameters:
        elements - Elements that should be contained in the tuple
        Returns:
        Created tuple, preserving the order of the given elements
      • getSize

        public int getSize()
        Description copied from interface: Tuple
        Get the tuple size
        Specified by:
        getSize in interface Tuple
        Returns:
        Tuple size