Interface Tuple

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Object> asList()
      Gets a List of Objects containing the items composing this Tuple
      default java.util.Iterator<java.lang.Object> iterator()
      Gets an immutable Iterator traversing the content of this Tuple.
      java.lang.Object nth​(int index)
      Get the item stored at the given index.
      int size()  
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • nth

        java.lang.Object nth​(int index)
        Get the item stored at the given index.
        Parameters:
        index - The index of the item to retrieve.
        Returns:
        The item, can be null
        Throws:
        java.lang.IndexOutOfBoundsException - if the index is greater than the size.
      • asList

        java.util.List<java.lang.Object> asList()
        Gets a List of Objects containing the items composing this Tuple
        Returns:
        A list containing the item of the tuple.
      • iterator

        default java.util.Iterator<java.lang.Object> iterator()
        Gets an immutable Iterator traversing the content of this Tuple.
        Specified by:
        iterator in interface java.lang.Iterable<java.lang.Object>
        Returns:
        the iterator
      • size

        int size()
        Returns:
        the number of items stored in the Tuple