public class SetAcceptor<A> extends AbstractAcceptor<A,Set<A>>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INITIAL_CAPACITY |
| Constructor and Description |
|---|
SetAcceptor() |
SetAcceptor(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptObject(A value)
Accept a value, after
closed check and test for end of data. |
Set<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 SetAcceptor(int initialCapacity)
public SetAcceptor()
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,Set<A>>value - the input valuepublic Set<A> getResult()
BaseAbstractAcceptorgetResult in interface BaseAcceptor<Set<A>>getResult in class BaseAbstractAcceptor<Set<A>>public int getSize()
Copyright © 2020. All rights reserved.