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) |
SetAcceptor(Set<A> set) |
| 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 of the acceptor.
|
int |
getSize() |
accept, acceptclose, isClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, isClosed, isComplete, safeCloseclosepublic 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()
BaseAcceptorpublic int getSize()
Copyright © 2025. All rights reserved.