Class IntegerRangeColumnRestriction

java.lang.Object
io.deephaven.web.client.api.ColumnRestriction
io.deephaven.web.client.api.IntegerRangeColumnRestriction

@TestUseOnly @TsName(namespace="dh") public class IntegerRangeColumnRestriction extends ColumnRestriction
A ColumnRestriction that constrains an integer 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 LongWrapper getMin()
      The inclusive minimum value allowed, or null if the range is unbounded below.
      Returns:
      The minimum value as a LongWrapper, or null
    • getMax

      @JsProperty public @JsNullable LongWrapper getMax()
      The inclusive maximum value allowed, or null if the range is unbounded above.
      Returns:
      The maximum value as a LongWrapper, 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