public final class DiffBuilder extends Object implements DiffInstanceBuilder
DiffInstanceBuilder,
DiffMappingBuilder,
DiffConfiguration| Modifier and Type | Method and Description |
|---|---|
static DiffBuilder |
map(Class<?> clazz)
Creates a diff instance instance to map the diff elements of a class.
|
DiffQueryMappingBuilder |
mapping(String field)
Maps the getter of the field for the class.
|
DiffQueryMappingBuilder |
mapping(String field,
String value)
Maps the getter of the field for the class with the value property to allow deep diff.
|
DiffMappingAllBuilder |
mappingAll()
Maps all the field of a class.
|
public static DiffBuilder map(Class<?> clazz)
clazz - the class that will be registry to make diffs.public DiffMappingAllBuilder mappingAll()
mappingAll in interface DiffInstanceBuilderpublic DiffQueryMappingBuilder mapping(String field)
mapping in interface DiffInstanceBuilderfield - name of the field that will me used to find the getter method.public DiffQueryMappingBuilder mapping(String field, String value)
mapping in interface DiffInstanceBuilderfield - name of the field that will me used to find the getter method.value - the nested property of the object to make the diff.DiffException - throw if the field doesn't have a public no args method for the field.Copyright © 2018. All rights reserved.