Interface RuleLookup<T>


@NullMarked public interface RuleLookup<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    resolveValue(@Nullable Claim claim)
    Safely resolves the value of the rule for a specific claim.
  • Method Details

    • resolveValue

      Optional<T> resolveValue(@Nullable Claim claim)
      Safely resolves the value of the rule for a specific claim. Handles wilderness (or null claim) and unset properties.
      Parameters:
      claim - The claim to check, or null.
      Returns:
      Optional containing the resolved value, or empty if the rule should pass/be ignored.