Package io.permazen.annotation
Annotation Interface ValueRange
Defines a predicate that matches a contiguous range of values of a simple field.
-
Optional Element Summary
Optional Elements
-
Element Details
-
min
String minGet the beginning of the value range.The value must be a valid
String
encoding of the associated field, acceptable toEncoding.fromString()
.- Returns:
- value range minimum, or empty string for no minimum
- Default:
- ""
-
max
String maxGet the end of the value range.The value must be a valid
String
encoding of the associated field, acceptable toEncoding.fromString()
.- Returns:
- value range maximum, or empty string for no maximum
- Default:
- ""
-
inclusiveMin
boolean inclusiveMinGet whether themin()
is an inclusive or exclusive lower bound.- Returns:
- true if lower bound is inclusive, false if exclusive
- Default:
- true
-
inclusiveMax
boolean inclusiveMaxGet whether themax()
is an inclusive or exclusive upper bound.- Returns:
- true if upper bound is inclusive, false if exclusive
- Default:
- false
-