Package ai.platon.pulsar.common.lang
Class AbstractChainedFunction0
-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.lang.ChainedHandler,ai.platon.pulsar.common.lang.PFunction,ai.platon.pulsar.common.lang.PFunction0,ai.platon.pulsar.common.lang.PHandler
public abstract class AbstractChainedFunction0<R extends Object> extends AbstractPFunction0<R> implements ChainedHandler
-
-
Constructor Summary
Constructors Constructor Description AbstractChainedFunction0()
-
Method Summary
Modifier and Type Method Description IntegergetSize()final AbstractChainedFunction0<R>addFirst(PFunction0<R> handler)final AbstractChainedFunction0<R>addFirst(Function0<R> handler)final AbstractChainedFunction0<R>addLast(PFunction0<R> handler)final AbstractChainedFunction0<R>addLast(Function0<R> handler)Booleanremove(Object handler)TODO: remove does not work if the handler is added as a lambda function Unitclear()Rinvoke()-
Methods inherited from class ai.platon.pulsar.common.lang.AbstractPFunction
getName, getPriority, isRelevant -
Methods inherited from class ai.platon.pulsar.common.lang.ChainedHandler
isEmpty, isNotEmpty -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
addFirst
final AbstractChainedFunction0<R> addFirst(PFunction0<R> handler)
-
addFirst
final AbstractChainedFunction0<R> addFirst(Function0<R> handler)
-
addLast
final AbstractChainedFunction0<R> addLast(PFunction0<R> handler)
-
addLast
final AbstractChainedFunction0<R> addLast(Function0<R> handler)
-
remove
Boolean remove(Object handler)
TODO: remove does not work if the handler is added as a lambda function
-
-
-
-