Package io.deephaven.web.client.api
Class DoubleRangeColumnRestriction
java.lang.Object
io.deephaven.web.client.api.ColumnRestriction
io.deephaven.web.client.api.DoubleRangeColumnRestriction
@TestUseOnly
@TsName(namespace="dh")
public class DoubleRangeColumnRestriction
extends ColumnRestriction
A
ColumnRestriction that constrains a double column to a closed range [min, max]. Either bound may be
null, meaning the range is unbounded on that side.
This class is intended for testing and demonstrating validation functionality, it is not production ready and may be changed or removed at any time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@JsNullable DoublegetMax()The inclusive maximum value allowed, ornullif the range is unbounded above.@JsNullable DoublegetMin()The inclusive minimum value allowed, ornullif the range is unbounded below.toString()@JsNullable Stringvalidate(@JsNullable jsinterop.base.Any value) Validates a proposed value against this restriction.Methods inherited from class io.deephaven.web.client.api.ColumnRestriction
getType
-
Constructor Details
-
DoubleRangeColumnRestriction
-
-
Method Details
-
getMin
The inclusive minimum value allowed, ornullif the range is unbounded below.- Returns:
- The minimum value, or
null
-
getMax
The inclusive maximum value allowed, ornullif the range is unbounded above.- Returns:
- The maximum value, or
null
-
validate
Description copied from class:ColumnRestrictionValidates a proposed value against this restriction.- Specified by:
validatein classColumnRestriction- Parameters:
value- The proposed column value to validate- Returns:
- An error message if the value violates the restriction, or
nullif the value is valid
-
toString
- Overrides:
toStringin classColumnRestriction
-