net.fortytwo.flow
Class NullSink<T>

java.lang.Object
  extended by net.fortytwo.flow.NullSink<T>
Type Parameters:
T -
All Implemented Interfaces:
Sink<T>

public class NullSink<T>
extends Object
implements Sink<T>

A sink which simply throws away all data passed into it.

Author:
Joshua Shinavier (http://fortytwo.net)

Constructor Summary
NullSink()
           
 
Method Summary
 void put(T t)
          Passes a data item into the Sink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullSink

public NullSink()
Method Detail

put

public void put(T t)
         throws RippleException
Description copied from interface: Sink
Passes a data item into the Sink

Specified by:
put in interface Sink<T>
Parameters:
t - the data item being passed
Throws:
RippleException - if a data handling error occors


Copyright © 2007-2014. All Rights Reserved.