public final class DiffBuilder<T> extends java.lang.Object implements DiffInstanceBuilder<T>
DiffInstanceBuilder,
DiffMappingBuilder,
DiffConfiguration| Modifier and Type | Method and Description |
|---|---|
static <T> DiffBuilder<T> |
map(java.lang.Class<T> clazz)
Creates a diff instance instance to map the diff elements of a class.
|
DiffQueryMappingBuilder<T> |
mapping(java.lang.String field)
Maps the getter of the field for the class.
|
<F> DiffQueryMappingBuilder<T> |
mapping(java.lang.String field,
java.lang.Class<F> fieldClass,
DiffComparator<F> comparator)
Maps the getter of the field for the class.
|
DiffMappingAllBuilder |
mappingAll()
Maps all the field of a class.
|
public static <T> DiffBuilder<T> map(java.lang.Class<T> clazz)
clazz - the class that will be registry to make diffs.public DiffMappingAllBuilder mappingAll()
mappingAll in interface DiffInstanceBuilder<T>public DiffQueryMappingBuilder<T> mapping(java.lang.String field)
mapping in interface DiffInstanceBuilder<T>field - name of the field that will me used to find the getter method.public <F> DiffQueryMappingBuilder<T> mapping(java.lang.String field, java.lang.Class<F> fieldClass, DiffComparator<F> comparator)
mapping in interface DiffInstanceBuilder<T>field - name of the field that will me used to find the getter method.comparator - implementation that define how two objects will be check for equality.Copyright © 2018. All rights reserved.