org.apache.commons.collections.functors

Class NOPClosure

public class NOPClosure extends Object implements Closure, Serializable

Closure implementation that does nothing.

Since: Commons Collections 3.0

Version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $

Author: Stephen Colebourne

Field Summary
static ClosureINSTANCE
Singleton predicate instance
Method Summary
voidexecute(Object input)
Do nothing.
static ClosuregetInstance()
Factory returning the singleton instance.

Field Detail

INSTANCE

public static final Closure INSTANCE
Singleton predicate instance

Method Detail

execute

public void execute(Object input)
Do nothing.

Parameters: input the input object

getInstance

public static Closure getInstance()
Factory returning the singleton instance.

Returns: the singleton instance

Since: Commons Collections 3.1

Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.