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 a BitFlagSetPredicate.
Since:
8.2.0
Author:
XIMA MEDIA GmbH
  • Method Details

    • 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.