Interface OptionData


public interface OptionData
Represents option permission data stored in a OptionDefinition.
  • Method Details

    • getOption

      Option<?> getOption()
      Gets the Option associated with this data.
      Returns:
      The option
    • getContexts

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

      default boolean matches(OptionData data)
      Checks if OptionData matches this data.
      Parameters:
      data - The option data to check
      Returns:
      Whether this data matches
    • matches

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

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