net.sf.collections15.functors.closure
Class NOPClosure<E>

java.lang.Object
  extended by net.sf.collections15.functors.closure.NOPClosure<E>
All Implemented Interfaces:
java.io.Serializable, Closure<E>

public class NOPClosure<E>
extends java.lang.Object
implements Closure<E>, java.io.Serializable

Closure implementation that does nothing.

Since:
Collections15 1.0
Author:
Stephen Colebourne, Chris Lambrou (port to Java 5.0)
See Also:
Serialized Form

Constructor Summary
protected NOPClosure()
          Creates a Closure which does nothing.
 
Method Summary
 void execute(E input)
          Does nothing.
static
<T> Closure<T>
getInstance()
          Returns a Closure which does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NOPClosure

protected NOPClosure()
Creates a Closure which does nothing.

Method Detail

getInstance

public static <T> Closure<T> getInstance()
Returns a Closure which does nothing.

Returns:
A Closure which does nothing.
Since:
Collections15 1.0

execute

public void execute(E input)
Does nothing.

Specified by:
execute in interface Closure<E>
Parameters:
input - The input object.


Copyright © 2001-2005 SourceForge.net. All Rights Reserved.