Package com.cognitect.transit
Interface ArrayReader<G,A,T>
-
public interface ArrayReader<G,A,T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Gadd(G a, T item)Adds an item to the result, returning a new result; new result must be used for any further invocationsAcomplete(G ar)Completes building of a result from a gestational resultGinit()Initializes a new gestational resultGinit(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 resultitem- an item- Returns:
- a new result
-
-