Home Reference Source Repository
import {ValueRange} from 'joda/src/temporal/ValueRange.js'
public class | source

ValueRange

The range of valid values for a date-time field.

All TemporalField instances have a valid range of values. For example, the ISO day-of-month runs from 1 to somewhere between 28 and 31. This class captures that valid range.

It is important to be aware of the limitations of this class. Only the minimum and maximum values are provided. It is possible for there to be invalid values within the outer range. For example, a weird field may have valid values of 1, 2, 4, 6, 7, thus have a range of '1 - 7', despite that fact that values 3 and 5 are invalid.

Instances of this class are not tied to a specific field.

Static Method Summary

Static Public Methods
public static

of(): *

Constructor Summary

Public Constructor
public

constructor(minSmallest: *, minLargest: *, maxSmallest: *, maxLargest: *)

Method Summary

Public Methods
public

checkValidValue(value: *, field: *): *

public

isValidValue(value: *): *

public

toString(): *

Static Public Methods

public static of(): * source

Return:

*

Public Constructors

public constructor(minSmallest: *, minLargest: *, maxSmallest: *, maxLargest: *) source

Params:

NameTypeAttributeDescription
minSmallest *
minLargest *
maxSmallest *
maxLargest *

Public Methods

public checkValidValue(value: *, field: *): * source

Params:

NameTypeAttributeDescription
value *
field *

Return:

*

public isValidValue(value: *): * source

Params:

NameTypeAttributeDescription
value *

Return:

*

public toString(): * source

Return:

*