@Test public void test() { final MethodsViaSerialization<C> methods = new MethodsViaSerialization<>(C.class); assertEquals("x", methods.get(C::x).getMethod().getName()); final MethodsViaSerialization<Object> obj = new MethodsViaSerialization<>(Object.class); assertEquals("y", obj.get(C::y).getMethod().getName()); }
public Method<T> get(Consumer<T> consumer) { return method(consumer); }
MethodsViaSerialization implements Methods<T> { public Method<T> get(Consumer<T> consumer) { return method(consumer); } }
MethodsViaSerialization implements Methods<T> { public Method<T> get(Consumer<T> consumer) { return method(consumer); } MethodsViaSerialization(Class<T> type); }
MethodsViaSerialization implements Methods<T> { public Method<T> get(Consumer<T> consumer) { return method(consumer); } MethodsViaSerialization(Class<T> type); Method<T> get(Consumer<T> consumer); Method<T> get(BiConsumer<T, P1> consumer); @Override Method<T> get(TriConsumer<T, P1, P2> triConsumer); @Override Method<T> get(QuadConsumer<T, P1, P2, P3> quadConsumer); Method<T> get(Function<T, R> function); Method<T> get(BiFunction<T, P1, R> function); Method<T> get(TriFunction<T, P1, P2, R> function); Method<T> get(QuadFunction<T, P1, P2, P3, R> function); }
MethodsViaSerialization implements Methods<T> { public Method<T> get(Consumer<T> consumer) { return method(consumer); } MethodsViaSerialization(Class<T> type); Method<T> get(Consumer<T> consumer); Method<T> get(BiConsumer<T, P1> consumer); @Override Method<T> get(TriConsumer<T, P1, P2> triConsumer); @Override Method<T> get(QuadConsumer<T, P1, P2, P3> quadConsumer); Method<T> get(Function<T, R> function); Method<T> get(BiFunction<T, P1, R> function); Method<T> get(TriFunction<T, P1, P2, R> function); Method<T> get(QuadFunction<T, P1, P2, P3, R> function);  }