T - the paramete typepublic abstract static class Osgl.Processor<T> extends Osgl.F1<T,T>
| Constructor and Description |
|---|
Processor() |
| Modifier and Type | Method and Description |
|---|---|
T |
apply(T t)
Apply this function to <T> type parameter.
|
abstract void |
process(T t)
Subclass must override thie method to process the parameter
|
andThen, andThen, applyOrElse, compose, compose, compose, compose, compose, compose, curry, invert, lift, orElse, timesbreakOutpublic T apply(T t) throws NotAppliedException, Osgl.Break
Osgl.FunctionIn case implementing a partial function, it can throw out an
NotAppliedException if the function is not defined for
the given parameter(s)
t - the argumentU type resultNotAppliedException - if the function doesn't apply to the parameter(s)Osgl.Break - to short cut collecting operations (fold/reduce) on an containerpublic abstract void process(T t) throws Osgl.Break, NotAppliedException
t - the object to be processedOsgl.Break - if logic decide it shall break external loopNotAppliedException - if logic decide to skip further processing
on the object passed inCopyright © 2017. All Rights Reserved.