Package de.xima.fc.bitflag
Class BitFlagSetPredicate.Builder
- java.lang.Object
-
- de.xima.fc.bitflag.BitFlagSetPredicate.Builder
-
- Enclosing class:
- BitFlagSetPredicate
public static final class BitFlagSetPredicate.Builder extends Object
Builder for aBitFlagSetPredicate
.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitFlagSetPredicate
build()
BitFlagSetPredicate.Builder
mustExcludeAllOf(long flags)
Adds a constraint which checks whether a flag to check excludes all of the given flags.BitFlagSetPredicate.Builder
mustExcludeAllOf(long... flags)
Adds a constraint which checks whether a flag to check excludes all of the given flags.BitFlagSetPredicate.Builder
mustExcludeSomeOf(long flags)
Adds a constraint which checks whether a flag to check excludes some of the given flags.BitFlagSetPredicate.Builder
mustExcludeSomeOf(long... flags)
Adds a constraint which checks whether a flag to check excludes some of the given flags.BitFlagSetPredicate.Builder
mustIncludeAllOf(long flags)
Adds a constraint which checks whether a flag to check includes all of the given flags.BitFlagSetPredicate.Builder
mustIncludeAllOf(long... flags)
Adds a constraint which checks whether a flag to check includes all of the given flagsBitFlagSetPredicate.Builder
mustIncludeSomeOf(long flags)
Adds a constraint which checks whether a flag to check includes some of the given flagsBitFlagSetPredicate.Builder
mustIncludeSomeOf(long... flags)
Adds a constraint which checks whether a flag to check includes some of the given flags
-
-
-
Method Detail
-
build
public BitFlagSetPredicate build()
- Returns:
- A
BitFlagSetPredicate
with the current configuration.
-
mustExcludeAllOf
public BitFlagSetPredicate.Builder mustExcludeAllOf(long flags)
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
public BitFlagSetPredicate.Builder mustExcludeAllOf(long... flags)
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
public BitFlagSetPredicate.Builder mustExcludeSomeOf(long flags)
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
public BitFlagSetPredicate.Builder mustExcludeSomeOf(long... flags)
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
public BitFlagSetPredicate.Builder mustIncludeAllOf(long flags)
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
public BitFlagSetPredicate.Builder mustIncludeAllOf(long... flags)
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
public BitFlagSetPredicate.Builder mustIncludeSomeOf(long... flags)
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
public BitFlagSetPredicate.Builder mustIncludeSomeOf(long flags)
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.
-
-