Interface PermissionChecker

  • All Superinterfaces:
    java.util.function.Predicate<java.lang.String>

    public interface PermissionChecker
    extends java.util.function.Predicate<java.lang.String>
    Something that has permissions.
    Since:
    4.8.0
    • Method Detail

      • value

        @NotNull
        @NotNull TriState value​(@NotNull
                                @NotNull java.lang.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 java.lang.String permission)
        Specified by:
        test in interface java.util.function.Predicate<java.lang.String>