tuweni / org.apache.tuweni.config / PropertyValidator / inRange

inRange

open static fun inRange(from: Long, to: Long): PropertyValidator<Number!>! (source)

A validator that ensures a property, if present, is within a long integer range.

Parameters

from - Long: The lower bound of the range (inclusive).

to - Long: The upper bound of the range (exclusive).

Return
PropertyValidator<Number!>!: A validator that ensures a property, if present, is within an integer range.