Interface FlagData


public interface FlagData
Represents flag permission data stored in a FlagDefinition.
  • Method Details

    • getFlag

      Flag getFlag()
      Gets the Flag associated with this data.
      Returns:
      The flag
    • getContexts

      Set<Context> getContexts()
      Gets the Context's associated with this data.
      Returns:
      The contexts
    • matches

      default boolean matches(FlagData flagData)
      Checks if FlagData matches this data.
      Parameters:
      flagData - The flag data to check
      Returns:
      Whether this data matches
    • matches

      boolean matches(Flag flag, Set<Context> contexts)
      Checks if a Flag with Context's match this data.
      Parameters:
      flag - The flag to check
      contexts - The contexts to check
      Returns:
      Whether this data matches
    • builder

      static FlagData.Builder builder()
      Gets a new claim builder instance for FlagData.Builder.
      Returns:
      A new claim builder instance