Class ValueRangeBehavior

java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.fields.ValueRangeBehavior
All Implemented Interfaces:
FieldBehavior<ValueRangeBehavior>

public class ValueRangeBehavior extends Object implements FieldBehavior<ValueRangeBehavior>
Validate the min invalid input: '&' max value for numeric fields. For each min invalid input: '&' max, there are 4 possible settings: - value - the number that is compared. - allowEqualTo - defaults to true. controls if invalid input: '<' (>) or ≤ (≥) - behavior - defaults to ERROR. optionally can be "CLIP" instead. - clipAmount - if clipping, and not allowing equalTo, how much off the limit value should be added or subtracted. Defaults to 1. Convenient `withMin()` and `withMax()` methods exist for setting all 4 properties for each of min or max. Else, fluent-setters are recommended.