| Constructor and Description |
|---|
OutputReceiver() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOutput(Receiver receiver)
Adds a new receiver that this OutputReceiver forwards to.
|
void |
addOutputCounter(ElementCounter outputCounter) |
Receiver |
getOnlyReceiver()
Invoked by tests only.
|
int |
getReceiverCount()
Invoked by tests only.
|
void |
process(Object elem)
Processes the element.
|
public void addOutput(Receiver receiver)
public void addOutputCounter(ElementCounter outputCounter)
public void process(Object elem) throws Exception
Receiverpublic int getReceiverCount()
public Receiver getOnlyReceiver()