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:
ProtoMonad<Type,RawType,A>
Direct Known Subclasses:
Option

public abstract class AbstractProtoMonad<Type,RawType,A>
extends Object
implements 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(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 ProtoMonad<Type,RawType,A>

skipNull

public Type skipNull()
Specified by:
skipNull in interface ProtoMonad<Type,RawType,A>

replace

public Type replace(A element,
                    A replacement)
Specified by:
replace in interface ProtoMonad<Type,RawType,A>

replaceNull

public Type replaceNull(A replacement)
Specified by:
replaceNull in interface ProtoMonad<Type,RawType,A>

each

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


Get Staccatocommons at SourceForge.net. Fast, secure and Free Open Source software downloads