public static enum SerdeSkipSerializingIf.SkipSerIf extends java.lang.Enum<SerdeSkipSerializingIf.SkipSerIf>
The field is skipped if the condition is true.
| Enum Constant and Description |
|---|
CUSTOM
Skip the field if its value satisfies a custom condition,
defined by
SerdeSkipSerializingIf.customCheck(). |
IS_EMPTY
Skip the field if it's empty.
|
IS_NULL
Skip the field if it's null.
|
| Modifier and Type | Method and Description |
|---|---|
static SerdeSkipSerializingIf.SkipSerIf |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SerdeSkipSerializingIf.SkipSerIf[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerdeSkipSerializingIf.SkipSerIf IS_NULL
public static final SerdeSkipSerializingIf.SkipSerIf IS_EMPTY
Determining whether an object is "empty" or not is done in a "logical" way
for common Java objects.
For instance, a CharSequence is empty is its length() is
zero, a Collection is empty if calling isEmpty() returns
true, etc.
As a last-resort try to implement the "is empty" check, reflection is used to
find and call the method boolean isEmpty() on the value.
public static final SerdeSkipSerializingIf.SkipSerIf CUSTOM
SerdeSkipSerializingIf.customCheck().public static SerdeSkipSerializingIf.SkipSerIf[] values()
for (SerdeSkipSerializingIf.SkipSerIf c : SerdeSkipSerializingIf.SkipSerIf.values()) System.out.println(c);
public static SerdeSkipSerializingIf.SkipSerIf valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null