com.varankin.io.container
Interface Receiver<Atom>

Type Parameters:
Atom - elementary object described by syntax.
All Known Subinterfaces:
Accumulator<Atom>, Automaton<Atom>, TailedAutomaton<Atom>
All Known Implementing Classes:
SyntaxImpl

public interface Receiver<Atom>

Mutable object to accept another objects of specified type.

Author:
© 2010 Nikolai Varankine

Method Summary
 boolean add(Atom aPart)
          A procedure to accept object.
 

Method Detail

add

boolean add(Atom aPart)
A procedure to accept object.

Parameters:
aPart - a candidate object to accept or null to indicate break in delivery.
Returns:
true if candidate has been accepted and false if it was rejected.