public class ListAcceptor<A> extends AbstractAcceptor<A,List<A>>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INITIAL_CAPACITY |
| Constructor and Description |
|---|
ListAcceptor() |
ListAcceptor(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptObject(A value)
Accept a value, after
closed check and test for end of data. |
List<A> |
getResult()
Get the result object (default implementation throws exception).
|
int |
getSize() |
acceptclose, isClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, isClosed, isCompleteclosepublic static final int DEFAULT_INITIAL_CAPACITY
public ListAcceptor(int initialCapacity)
public ListAcceptor()
public void acceptObject(A value)
AbstractAcceptorclosed check and test for end of data. Implementing classes must supply an
implementation of this method.acceptObject in class AbstractAcceptor<A,List<A>>value - the input valuepublic List<A> getResult()
BaseAbstractAcceptorgetResult in interface BaseAcceptor<List<A>>getResult in class BaseAbstractAcceptor<List<A>>public int getSize()
Copyright © 2020. All rights reserved.