Package org.apache.juneau.console.views
Class VisibilityRule.Builder
java.lang.Object
org.apache.juneau.console.views.VisibilityRule.Builder
- Enclosing class:
- VisibilityRule
Fluent operator picker returned by
VisibilityRule.when(String).-
Method Summary
Modifier and TypeMethodDescriptionabsent()Matches when the field is missing, null or blank.Matches when the field (itself a list) contains the value.Matches when the field equals the value.Matches when the field equals one of the values.Matches when the field is present and does not equal the value.present()Matches when the field is non-null and non-blank.
-
Method Details
-
eq
Matches when the field equals the value.- Parameters:
value- The comparison value. Must not benull .- Returns:
- A new
VisibilityRule.
-
ne
Matches when the field is present and does not equal the value.- Parameters:
value- The comparison value. Must not benull .- Returns:
- A new
VisibilityRule.
-
present
Matches when the field is non-null and non-blank.- Returns:
- A new
VisibilityRule.
-
absent
Matches when the field is missing, null or blank.- Returns:
- A new
VisibilityRule.
-
in
Matches when the field equals one of the values.- Parameters:
values- The candidate values.- Returns:
- A new
VisibilityRule.
-
contains
Matches when the field (itself a list) contains the value.- Parameters:
value- The value the list must contain. Must not benull .- Returns:
- A new
VisibilityRule.
-