Interface PermissionChecker

All Superinterfaces:
Predicate<String>

public interface PermissionChecker extends Predicate<String>
Something that has permissions.
Since:
4.8.0
  • Field Details

  • Method Details

    • always

      @NotNull static @NotNull PermissionChecker always(@NotNull @NotNull TriState state)
      Creates a PermissionChecker that always returns state.
      Parameters:
      state - the state
      Returns:
      a PermissionChecker
      Since:
      4.8.0
    • value

      @NotNull @NotNull TriState value(@NotNull @NotNull String permission)
      Checks if something has a permission.
      Parameters:
      permission - the permission
      Returns:
      a tri-state result
      Since:
      4.8.0
    • test

      default boolean test(@NotNull @NotNull String permission)
      Specified by:
      test in interface Predicate<String>