Interface ArrayReader<G,​A,​T>


  • public interface ArrayReader<G,​A,​T>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      G add​(G a, T item)
      Adds an item to the result, returning a new result; new result must be used for any further invocations
      A complete​(G ar)
      Completes building of a result from a gestational result
      G init()
      Initializes a new gestational result
      G init​(int size)
      Initializes a new gestational result of specified size
    • Method Detail

      • init

        G init()
        Initializes a new gestational result
        Returns:
        a new gestational result
      • init

        G init​(int size)
        Initializes a new gestational result of specified size
        Parameters:
        size - initial size of the new result
        Returns:
        a new gestational result
      • add

        G add​(G a,
              T item)
        Adds an item to the result, returning a new result; new result must be used for any further invocations
        Parameters:
        a - gestational result
        item - an item
        Returns:
        a new result
      • complete

        A complete​(G ar)
        Completes building of a result from a gestational result
        Parameters:
        ar - the gestational result
        Returns:
        the completed object