public class PickOmitMapping extends Mapping<PickOmitMapping> implements Serializable
Mapping
for picking and omitting source properties from the
destination.Constructor and Description |
---|
PickOmitMapping() |
PickOmitMapping(PickOmitMapping mapping) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
PickOmitMapping |
clearOmit()
Clears the set of omitted fields.
|
PickOmitMapping |
clearPick()
Clears the set of picked fields.
|
PickOmitMapping |
copy() |
boolean |
equals(Object o) |
List<String> |
getOmit()
The names of the properties that should not be kept from the source.
|
List<String> |
getPick()
The names of the properties that should be kept from the source.
|
int |
hashCode() |
PickOmitMapping |
omit(List<String> omit)
Sets the set of fields to exclude.
|
PickOmitMapping |
omit(String... omit)
Sets the set of fields to exclude.
|
PickOmitMapping |
pick(List<String> pick)
Sets the set of fields to include.
|
PickOmitMapping |
pick(String... pick)
Sets the set of fields to include.
|
public PickOmitMapping()
public PickOmitMapping(PickOmitMapping mapping)
public PickOmitMapping copy()
copy
in interface Copyable<PickOmitMapping>
public PickOmitMapping pick(List<String> pick)
pick
- the picked fieldspublic PickOmitMapping pick(String... pick)
pick
- the picked fieldspublic PickOmitMapping clearPick()
public PickOmitMapping omit(List<String> omit)
omit
- the omitted fieldspublic PickOmitMapping omit(String... omit)
omit
- the omitted fieldspublic PickOmitMapping clearOmit()
public List<String> getPick()
public List<String> getOmit()
public boolean equals(Object o)
equals
in class Mapping<PickOmitMapping>
protected boolean canEqual(Object other)
canEqual
in class Mapping<PickOmitMapping>
public int hashCode()
hashCode
in class Mapping<PickOmitMapping>
Copyright © 2021. All rights reserved.