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 G
add(G a, T item)
Adds an item to the result, returning a new result; new result must be used for any further invocationsA
complete(G ar)
Completes building of a result from a gestational resultG
init()
Initializes a new gestational resultG
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 resultitem
- an item- Returns:
- a new result
-
-