- Type Parameters:
- T- the value type
- All Implemented Interfaces:
- Serializable,- Consumer<T>,- Operation
A consumer that prints the input to stdout.
- See Also:
- 
- 
Constructor SummaryConstructors 
- 
Method Summary
void
 
Performs an operation on the given argument. 
 
 
 
 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
- 
Constructor Details
- 
PrintConsumerpublic PrintConsumer() 
 
- 
Method Details
- 
acceptpublic void accept(T input) Description copied from interface: Consumer
 Performs an operation on the given argument. 
- Specified by:
- acceptin interface- Consumer<T>
- Parameters:
- input- the input