Package io.permazen.annotation
Annotation Interface Values
Defines a predicate that matches certain values of a simple field.
A field value matches if it matches any of nulls()
, nonNulls()
, or value()
match the value.
To match all field values, combine nulls()
with nonNulls()
. For primitive field types,
nulls()
is irrelevant and ignored, so nonNulls()
matches all values.
It is an error to combine nonNulls()
with value()
, as that would be redundant.
-
Optional Element Summary
-
Element Details
-
nulls
boolean nullsSpecify whether the null value should match.- Default:
- false
-
nonNulls
boolean nonNullsSpecify whether any non-null value should match.- Default:
- false
-
value
String[] valueEnumerate specific field value(s) that should match.Each value must be a valid
String
encoding of the associated field, acceptable toEncoding.fromString()
.- Returns:
- specific matching field values
- Default:
- {}
-