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