public class Match extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Match |
exclude(String... fields)
Mark fields for exclusion during serialization.
|
int |
hashCode() |
Match |
include(String... fields)
Mark fields for inclusion during serialization.
|
static Match |
match() |
String |
toString() |
<X,Y,Z> Match |
transform(String field,
BiFunction<X,Y,Z> transformer)
Mark a field for transformation during serialization.
|
public Match include(String... fields)
fields - The fields to includepublic Match exclude(String... fields)
fields - The fields to excludepublic <X,Y,Z> Match transform(String field, BiFunction<X,Y,Z> transformer)
X - The object being serializedY - The field being serializedZ - The value of the field to serializefield - The fields to includetransformer - The function to transform the field. Will be provided with the whole object and the field.public static Match match()
Copyright © 2021. All rights reserved.