public final class DiffReflections extends Object
| Constructor and Description |
|---|
DiffReflections() |
| Modifier and Type | Method and Description |
|---|---|
static Method |
discoverGetter(Class<?> diffClass,
String fieldOrMethodName)
Discover the public non-args method for access a field value.
|
static <T> T |
invoke(Object instance,
Method method)
Calls the method for the object and returns the value.
|
static DiffConfiguration |
mapAnnotations(Class<?> diffClass)
Map the methods of the object that has the annotations for diff and stores in cache.
|
public static DiffConfiguration mapAnnotations(Class<?> diffClass)
diffClass - class that have the diff annotations.public static Method discoverGetter(Class<?> diffClass, String fieldOrMethodName)
diffClass - the class that has the getter method.fieldOrMethodName - the name of the field for discover or the name of the getter method.public static <T> T invoke(Object instance, Method method)
T - the type of value returned by the method.instance - the object instance that have the method.method - the getter method to get the value.Copyright © 2020. All rights reserved.