net.sf.staccatocommons.lang.block.internal
Class Empty<T>

java.lang.Object
  extended by net.sf.staccatocommons.lang.function.AbstractDelayable<T,Void>
      extended by net.sf.staccatocommons.lang.block.Block<T>
          extended by net.sf.staccatocommons.lang.block.internal.Empty<T>
Type Parameters:
T -
All Implemented Interfaces:
Serializable, net.sf.staccatocommons.defs.Applicable<T,Void>, net.sf.staccatocommons.defs.Delayable<T,Void>, net.sf.staccatocommons.defs.Executable<T>, net.sf.staccatocommons.defs.partial.NullSafeAware<Block<T>>

public final class Empty<T>
extends Block<T>
implements Serializable

Author:
flbulgarelli
See Also:
Serialized Form

Constructor Summary
Empty()
           
 
Method Summary
 void exec(T argument)
          Executes this block.
static
<T> Block<T>
getInstance()
           
 
Methods inherited from class net.sf.staccatocommons.lang.block.Block
apply, nullSafe, softExec, then, toString
 
Methods inherited from class net.sf.staccatocommons.lang.function.AbstractDelayable
delayed, delayedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Empty

public Empty()
Method Detail

exec

public void exec(T argument)
Description copied from class: Block
Executes this block. This implementation just invokes Block.softExec(Object), and softens any exception it may throw. Subclasses may override this behavior.

Specified by:
exec in interface net.sf.staccatocommons.defs.Executable<T>
Overrides:
exec in class Block<T>

getInstance

public static <T> Block<T> getInstance()
Type Parameters:
T -
Returns:
an instance of an empty block


Copyright © 2010-2012 Staccatocommons. All Rights Reserved.