Interface Tuple

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Object> elements()
      Gets the elements from this tuple as a list.
      int size()
      Gets the number of elements held by this 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

        java.util.List<java.lang.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