@Test void should_return_methods_when_called_with_primitive_short() { Method getter = ClassUtils.getReferencedMethod(Sample.class, Sample::getaShort); assertThat(getter.getDeclaringClass()).isEqualTo(Sample.class); assertThat(getter.getName()).isEqualTo("getaShort"); Method setter = ClassUtils.getReferencedMethod(Sample.class, Sample::setaShort); assertThat(setter.getDeclaringClass()).isEqualTo(Sample.class); assertThat(setter.getName()).isEqualTo("setaShort"); }
public static <T, R> Method getReferencedMethod(Class<T> clazz, ReadMethodRef<T, R> methodRef) { return findReferencedMethod(clazz, methodRef::call); }
ClassUtils { public static <T, R> Method getReferencedMethod(Class<T> clazz, ReadMethodRef<T, R> methodRef) { return findReferencedMethod(clazz, methodRef::call); } }
ClassUtils { public static <T, R> Method getReferencedMethod(Class<T> clazz, ReadMethodRef<T, R> methodRef) { return findReferencedMethod(clazz, methodRef::call); }  }
ClassUtils { public static <T, R> Method getReferencedMethod(Class<T> clazz, ReadMethodRef<T, R> methodRef) { return findReferencedMethod(clazz, methodRef::call); }  static Method getReferencedMethod(Class<T> clazz, ReadMethodRef<T, R> methodRef); @SuppressWarnings("unchecked") static Method getReferencedMethod(Class<T> clazz, WriteMethodRef<T, A1> methodRef); static LinkedHashMap<Class, Method> transformPathToMethod(Class<?> baseClass,
                    List<ReadMethodRef<?, ?>> path); }
ClassUtils { public static <T, R> Method getReferencedMethod(Class<T> clazz, ReadMethodRef<T, R> methodRef) { return findReferencedMethod(clazz, methodRef::call); }  static Method getReferencedMethod(Class<T> clazz, ReadMethodRef<T, R> methodRef); @SuppressWarnings("unchecked") static Method getReferencedMethod(Class<T> clazz, WriteMethodRef<T, A1> methodRef); static LinkedHashMap<Class, Method> transformPathToMethod(Class<?> baseClass,
                    List<ReadMethodRef<?, ?>> path);  }