T - the type of the parameter the visitor function applied topublic abstract static class Osgl.Visitor<T> extends Osgl.F1<T,Void>
| Constructor and Description |
|---|
Visitor()
Construct a visitor without payload
|
| Modifier and Type | Method and Description |
|---|---|
Void |
apply(T t)
Apply this function to <T> type parameter.
|
abstract void |
visit(T t)
User application to implement visit logic in this method
|
andThen, andThen, applyOrElse, compose, compose, compose, compose, compose, compose, curry, invert, lift, orElse, timesbreakOutpublic final Void apply(T t)
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 resultpublic abstract void visit(T t) throws Osgl.Break
t - the element been visitedOsgl.Break - if the logic decide to break visit progress (usually when visiting a sequence of elements)Copyright © 2017. All Rights Reserved.