Groovy Documentation

com.ace.mws.enums
[Groovy] Enum TimeWindow

java.lang.Object
  com.ace.mws.enums.TimeWindow

enum TimeWindow

This enumeration represents some common time windows. It can be used when for many purposes, but was created specifically for statistics.


Enum Constant Summary
DAY

HOUR

INFINITY

MINUTE

MONTH

WEEK

YEAR

 
Property Summary
Integer calendarValue

The undefined value for number of days.

Integer numberOfDays

The number of days represented in the TimeWindow enum value.

Integer numberOfSeconds

The number of seconds represented in the TimeWindow enum value.

String str

The human readable string.

 
Constructor Summary
TimeWindow(Integer calendarValue, Integer numberOfSeconds, String str)

 
Method Summary
static TimeWindow parse(String time)

TimeWindow valueOf(String name)

Returns the enum constant of this type with the specified name.

TimeWindow[] values()

Returns an array containing the constants of this enum type, in the order they are declared.

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Enum Constant Detail

DAY

TimeWindow DAY


HOUR

TimeWindow HOUR


INFINITY

TimeWindow INFINITY


MINUTE

TimeWindow MINUTE


MONTH

TimeWindow MONTH


WEEK

TimeWindow WEEK


YEAR

TimeWindow YEAR


 
Property Detail

calendarValue

Integer calendarValue
The undefined value for number of days.


numberOfDays

Integer numberOfDays
The number of days represented in the TimeWindow enum value. If the time window is less than a day, -1 is used.


numberOfSeconds

Integer numberOfSeconds
The number of seconds represented in the TimeWindow enum value.


str

String str
The human readable string.


 
Constructor Detail

TimeWindow

TimeWindow(Integer calendarValue, Integer numberOfSeconds, String str)


 
Method Detail

parse

static TimeWindow parse(String time)


valueOf

TimeWindow valueOf(String name)
Returns the enum constant of this type with the specified name.


values

TimeWindow[] values()
Returns an array containing the constants of this enum type, in the order they are declared.


 

Groovy Documentation