public static final class CaseMatchings.ClassDispatcher<T,R,CT>
extends java.lang.Object
implements java.util.function.BiFunction<T,java.util.function.Function<java.lang.Object,R>,R>
Constructor and Description |
---|
ClassDispatcher(java.lang.Class<CT> representerClass,
java.util.function.Supplier<CT> instanceSupplier,
java.util.SortedMap<java.lang.Class<?>,com.google.common.reflect.Invokable<CT,R>> methods) |
Modifier and Type | Method and Description |
---|---|
R |
apply(T t,
java.util.function.Function<java.lang.Object,R> callback) |