Package org.rapidcontext.core.data.stat
Enum MovingSum.Interval
- All Implemented Interfaces:
Serializable
,Comparable<MovingSum.Interval>
- Enclosing class:
MovingSum
The predefined time intervals.
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MovingSum.Interval
Returns the enum constant of this type with the specified name.static MovingSum.Interval[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HOUR
The hour interval. -
DAY
The day (24 hour) interval. -
MONTH
The month (30 day) interval.
-
-
Field Details
-
millis
public final long millisThe interval length in milliseconds.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-