net.sf.staccatocommons.lang
Class AbstractProtoMonad<Type,RawType,A>

java.lang.Object
  extended by net.sf.staccatocommons.lang.AbstractProtoMonad<Type,RawType,A>
All Implemented Interfaces:
net.sf.staccatocommons.defs.ProtoMonad<Type,RawType,A>
Direct Known Subclasses:
Option

public abstract class AbstractProtoMonad<Type,RawType,A>
extends Object
implements net.sf.staccatocommons.defs.ProtoMonad<Type,RawType,A>

Abstract ProtoMonad, which provides default implementations for all the optional operations

Since:
2.1
Author:
flbulgarelli

Constructor Summary
AbstractProtoMonad()
           
 
Method Summary
 Type each(net.sf.staccatocommons.defs.Executable<? super A> block)
           
 Type replace(A element, A replacement)
           
 Type replaceNull(A replacement)
           
 Type skip(A element)
           
 Type skipNull()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.staccatocommons.defs.ProtoMonad
filter, forEach, map
 

Constructor Detail

AbstractProtoMonad

public AbstractProtoMonad()
Method Detail

skip

public Type skip(A element)
Specified by:
skip in interface net.sf.staccatocommons.defs.ProtoMonad<Type,RawType,A>

skipNull

public Type skipNull()
Specified by:
skipNull in interface net.sf.staccatocommons.defs.ProtoMonad<Type,RawType,A>

replace

public Type replace(A element,
                    A replacement)
Specified by:
replace in interface net.sf.staccatocommons.defs.ProtoMonad<Type,RawType,A>

replaceNull

public Type replaceNull(A replacement)
Specified by:
replaceNull in interface net.sf.staccatocommons.defs.ProtoMonad<Type,RawType,A>

each

public Type each(net.sf.staccatocommons.defs.Executable<? super A> block)
Specified by:
each in interface net.sf.staccatocommons.defs.ProtoMonad<Type,RawType,A>


Copyright © 2010-2012 StaccatoCommons. All Rights Reserved.