Class LambdaVisitor<B,A>
java.lang.Object
de.hamstersimulator.objectsfirst.utils.LambdaVisitor<B,A>
- All Implemented Interfaces:
Function<B,A>
Implements the Lambda Visitor Pattern
Can be used to execute a different callback based on the dynamic type
of an object.
Has the following priority:
- Check if a callback for the class is registered
- Check if a callback for any interface that the class directly implements is registered
- If the class has a superclass: continue 1. with the direct superclass