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 Details

  • Method Details

    • getMin

      @JsProperty public @JsNullable Double getMin()
      The inclusive minimum value allowed, or null if the range is unbounded below.
      Returns:
      The minimum value, or null
    • getMax

      @JsProperty public @JsNullable Double getMax()
      The inclusive maximum value allowed, or null if the range is unbounded above.
      Returns:
      The maximum value, or null
    • validate

      @JsMethod public @JsNullable String validate(@JsNullable jsinterop.base.Any value)
      Description copied from class: ColumnRestriction
      Validates a proposed value against this restriction.
      Specified by:
      validate in class ColumnRestriction
      Parameters:
      value - The proposed column value to validate
      Returns:
      An error message if the value violates the restriction, or null if the value is valid
    • toString

      public String toString()
      Overrides:
      toString in class ColumnRestriction