public enum RefreshDelay extends Enum<RefreshDelay>
Enum Constant and Description |
---|
REFRESH_DELAY_10M
10 minutes refresh delay.
|
REFRESH_DELAY_10S
10 seconds refresh delay.
|
REFRESH_DELAY_1M
1 minute refresh delay.
|
REFRESH_DELAY_2M
2 minutes refresh delay.
|
REFRESH_DELAY_30S
30 seconds refresh delay.
|
REFRESH_DELAY_5M
5 minutes refresh delay.
|
Modifier and Type | Field and Description |
---|---|
private Integer |
delay
Refresh delay.
|
private String |
description
Translation in seconds/minutes of the delay.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getDelay()
Get the refresh delay.
|
String |
toString()
Return the description to be displayed.
|
static RefreshDelay |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RefreshDelay[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RefreshDelay REFRESH_DELAY_10S
public static final RefreshDelay REFRESH_DELAY_30S
public static final RefreshDelay REFRESH_DELAY_1M
public static final RefreshDelay REFRESH_DELAY_2M
public static final RefreshDelay REFRESH_DELAY_5M
public static final RefreshDelay REFRESH_DELAY_10M
private final Integer delay
private final String description
public static RefreshDelay[] values()
for (RefreshDelay c : RefreshDelay.values()) System.out.println(c);
public static RefreshDelay valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic Integer getDelay()
public String toString()
toString
in class Enum<RefreshDelay>
Copyright © 2013–2015. All rights reserved.