Interface PropertyHandler.ConditionPropertyHandler<Type>

Type Parameters:
Type - The type of object this property can be applied to.
All Superinterfaces:
PropertyHandler<Type>
Enclosing interface:
PropertyHandler<Type>

@Experimental public static interface PropertyHandler.ConditionPropertyHandler<Type> extends PropertyHandler<Type>
A handler for a simple property condition. This property must be an inherent condition of the thing, and not require secondary inputs, like PropertyHandler.ContainsHandler does. Properties that use this interface should a lso use PropertyBaseCondition for the parent condition.
See Also:
  • Method Details

    • check

      boolean check(Type propertyHolder)
    • of

      @Contract(value="_ -> new", pure=true) @NotNull static <Type> @NotNull PropertyHandler.ConditionPropertyHandler<Type> of(Predicate<Type> predicate)
      Creates a simple property handler from the given predicate.
      Type Parameters:
      Type - The type of object this property can be applied to.
      Parameters:
      predicate - The predicate to evaluate the condition with.
      Returns:
      A new property handler that uses the given predicate.