Class BitFlagSetPredicate.Builder
java.lang.Object
de.xima.fc.bitflag.BitFlagSetPredicate.Builder
- Enclosing class:
BitFlagSetPredicate
Builder for a
BitFlagSetPredicate.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionbuild()mustExcludeAllOf(long flags) Adds a constraint which checks whether a flag to check excludes all of the given flags.mustExcludeAllOf(long... flags) Adds a constraint which checks whether a flag to check excludes all of the given flags.mustExcludeSomeOf(long flags) Adds a constraint which checks whether a flag to check excludes some of the given flags.mustExcludeSomeOf(long... flags) Adds a constraint which checks whether a flag to check excludes some of the given flags.mustIncludeAllOf(long flags) Adds a constraint which checks whether a flag to check includes all of the given flags.mustIncludeAllOf(long... flags) Adds a constraint which checks whether a flag to check includes all of the given flagsmustIncludeSomeOf(long flags) Adds a constraint which checks whether a flag to check includes some of the given flagsmustIncludeSomeOf(long... flags) Adds a constraint which checks whether a flag to check includes some of the given flags
-
Method Details
-
build
- Returns:
- A
BitFlagSetPredicatewith the current configuration.
-
mustExcludeAllOf
Adds a constraint which checks whether a flag to check excludes all of the given flags.- Parameters:
flags- List of flags to exclude.- Returns:
- This builder instance for chaining method calls.
-
mustExcludeAllOf
Adds a constraint which checks whether a flag to check excludes all of the given flags.- Parameters:
flags- List of flags to exclude.- Returns:
- This builder instance for chaining method calls.
-
mustExcludeSomeOf
Adds a constraint which checks whether a flag to check excludes some of the given flags.- Parameters:
flags- List of flags to exclude.- Returns:
- This builder instance for chaining method calls.
-
mustExcludeSomeOf
Adds a constraint which checks whether a flag to check excludes some of the given flags.- Parameters:
flags- List of flags to exclude.- Returns:
- This builder instance for chaining method calls.
-
mustIncludeAllOf
Adds a constraint which checks whether a flag to check includes all of the given flags.- Parameters:
flags- List of flags to include.- Returns:
- This builder instance for chaining method calls.
-
mustIncludeAllOf
Adds a constraint which checks whether a flag to check includes all of the given flags- Parameters:
flags- List of flags to include.- Returns:
- This builder instance for chaining method calls.
-
mustIncludeSomeOf
Adds a constraint which checks whether a flag to check includes some of the given flags- Parameters:
flags- List of flags to include.- Returns:
- This builder instance for chaining method calls.
-
mustIncludeSomeOf
Adds a constraint which checks whether a flag to check includes some of the given flags- Parameters:
flags- List of flags to include.- Returns:
- This builder instance for chaining method calls.
-