Interface Tuple

    • Method Detail

      • size

        int size()
        Gets the number of elements held by this tuple.

        Each tuple type has a fixed size, returned by this method. For example, Pair returns 2.

        Returns:
        the size of the tuple
      • elements

        List<Object> elements()
        Gets the elements from this tuple as a list.

        The list contains each element in the tuple in order.

        Returns:
        the elements as a list