net.sf.staccatocommons.lang
Class AbstractProtoMonad<Type,RawType,A>
java.lang.Object
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
| 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 |
AbstractProtoMonad
public AbstractProtoMonad()
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.