public class TransformBody extends Object implements Serializable, Copyable<TransformBody>
Constructor and Description |
---|
TransformBody() |
TransformBody(TransformBody transformBody) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
TransformBody |
clearMappings()
Clears the current set of collection mappings.
|
TransformBody |
clearOmit()
Clears the set of omitted fields.
|
TransformBody |
clearPick()
Clears the set of picked fields.
|
TransformBody |
copy() |
boolean |
equals(Object o) |
List<Mapping<?>> |
getMappings()
Set of mappings to transform the data.
|
List<String> |
getOmit()
The names of the properties that should be excluded from the data.
|
List<String> |
getPick()
The names of the properties that should be kept from the data.
|
int |
hashCode() |
TransformBody |
mapping(Mapping<?>... mappings)
Adds to the set of mappings to transform the collection.
|
TransformBody |
mappings(List<Mapping<?>> mappings)
Adds to the set of mappings to transform the collection.
|
TransformBody |
omit(List<String> omit)
Sets the set of fields to exclude.
|
TransformBody |
omit(String... omit)
Sets the set of fields to exclude.
|
TransformBody |
pick(List<String> pick)
Sets the set of fields to include.
|
TransformBody |
pick(String... pick)
Sets the set of fields to include.
|
protected TransformBody |
self() |
public TransformBody()
public TransformBody(TransformBody transformBody)
public TransformBody copy()
copy
in interface Copyable<TransformBody>
public TransformBody mappings(List<Mapping<?>> mappings)
mappings
- the collection mappingspublic TransformBody mapping(Mapping<?>... mappings)
mappings
- the collection mappingspublic TransformBody clearMappings()
public TransformBody pick(List<String> pick)
pick
- the picked fieldspublic TransformBody pick(String... pick)
pick
- the picked fieldspublic TransformBody clearPick()
public TransformBody omit(List<String> omit)
omit
- the omitted fieldspublic TransformBody omit(String... omit)
omit
- the omitted fieldspublic TransformBody clearOmit()
protected TransformBody self()
public List<String> getPick()
public List<String> getOmit()
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.