Interface NotPredicate

All Superinterfaces:
BlockPredicate, Wrapper

@NullMarked @AsOf("3.0.0") public interface NotPredicate extends BlockPredicate
Inverts a given block predicate. Matches if the specified other block predicate does not match.
Since:
3.0.0
See Also:
  • Method Details

    • predicate

      @AsOf("3.0.0") BlockPredicate predicate()
      The predicate to invert.
      Returns:
      the predicate
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static NotPredicate of(BlockPredicate predicate)
      Creates a new NotPredicate with the given predicate.
      Parameters:
      predicate - the predicate to invert
      Returns:
      the NotPredicate
      Since:
      3.0.0