Package io.permazen.kv
Class KeyFilterUtil
java.lang.Object
io.permazen.kv.KeyFilterUtil
Utility methods for dealing with
KeyFilters.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyFilterintersection(KeyFilter... keyFilters) Create aKeyFilterthat represents the intersection of the given instances.static booleanDetermine if the given instance is empty, i.e., contains no keys.static KeyFilterCreate aKeyFilterthat represents the union of the given instances.
-
Method Details
-
union
Create aKeyFilterthat represents the union of the given instances.- Parameters:
keyFilters- instances to unify- Returns:
- the union of the given
keyFilters - Throws:
IllegalArgumentException- ifkeyFiltersis emptyIllegalArgumentException- ifkeyFiltersor any element inkeyFiltersis null
-
intersection
Create aKeyFilterthat represents the intersection of the given instances.- Parameters:
keyFilters- instances to intersect- Returns:
- the intersection of the given
keyFilters - Throws:
IllegalArgumentException- ifkeyFiltersis emptyIllegalArgumentException- ifkeyFiltersor any element inkeyFiltersis null
-
isEmpty
Determine if the given instance is empty, i.e., contains no keys.- Parameters:
keyFilter- instance to check- Returns:
- true if filter is empty
- Throws:
IllegalArgumentException- ifkeyFilteris null
-