TimeRange Class

public final class TimeRange
extends ExpandableStringEnum<TimeRange>

Defines values for TimeRange.

Field Summary

Modifier and Type Field and Description
static final TimeRange ONED

Static value 1d for TimeRange.

static final TimeRange ONEH

Static value 1h for TimeRange.

static final TimeRange SEVEND

Static value 7d for TimeRange.

static final TimeRange THREE_ZEROD

Static value 30d for TimeRange.

Constructor Summary

Constructor Description
TimeRange()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of TimeRange value.

Method Summary

Modifier and Type Method and Description
static TimeRange fromString(String name)

Creates or finds a TimeRange from its string representation.

static Collection<TimeRange> values()

Gets known TimeRange values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ONED

public static final TimeRange ONED

Static value 1d for TimeRange.

ONEH

public static final TimeRange ONEH

Static value 1h for TimeRange.

SEVEND

public static final TimeRange SEVEND

Static value 7d for TimeRange.

THREE_ZEROD

public static final TimeRange THREE_ZEROD

Static value 30d for TimeRange.

Constructor Details

TimeRange

@Deprecated
public TimeRange()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of TimeRange value.

Method Details

fromString

public static TimeRange fromString(String name)

Creates or finds a TimeRange from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding TimeRange.

values

public static Collection<TimeRange> values()

Gets known TimeRange values.

Returns:

known TimeRange values.

Applies to