java.lang.Object
de.hamstersimulator.objectsfirst.utils.LambdaVisitor<B,​A>
All Implemented Interfaces:
Function<B,​A>

public final class LambdaVisitor<B,​A> extends Object implements 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:
  1. Check if a callback for the class is registered
  2. Check if a callback for any interface that the class directly implements is registered
  3. If the class has a superclass: continue 1. with the direct superclass