Interface CasProcessor<E extends java.lang.Throwable>
-
- Type Parameters:
E
- Thrown exception.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CasProcessor<E extends java.lang.Throwable>
A functional interface for a CAS processor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CasProcessor<E>
andThen(CasProcessor<E> after)
Returns a composedCasProcessor
likeandThen(CasProcessor)
.void
process(CAS aCas)
Accepts the processor.
-
-
-
Method Detail
-
andThen
default CasProcessor<E> andThen(CasProcessor<E> after)
Returns a composedCasProcessor
likeandThen(CasProcessor)
.- Parameters:
after
- the operation to perform after this operation- Returns:
- a composed
CasProcessor
likeandThen(CasProcessor)
. - Throws:
java.lang.NullPointerException
- whenafter
is null
-
-