Enum Constant and Description |
---|
DAY |
HOUR |
MINUTE |
MONTH |
SECOND |
YEAR |
SUB_KEY_ACTION, SUB_KEY_COLUMN, SUB_KEY_CONFIRM, SUB_KEY_CONST, SUB_KEY_DBO, SUB_KEY_DEMO, SUB_KEY_ERROR, SUB_KEY_FIELD, SUB_KEY_GUI, SUB_KEY_HELP, SUB_KEY_INFO, SUB_KEY_LABEL, SUB_KEY_MENU, SUB_KEY_MESSAGE, SUB_KEY_MISC, SUB_KEY_STATUS, SUB_KEY_TIP, SUB_KEY_TOOL, SUB_KEY_WINDOW, SUB_KEY_WORKFLOW
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAppKey()
Returns the base prefix of the key
|
java.lang.String |
getSubKey()
Returns the path of the key
|
java.lang.String |
getText(java.lang.Object... args)
Returns the translated text, which is the value of the translation key
as stored in the translation map.
|
int |
getValue() |
static int |
toDays(long millis) |
static int |
toHours(long millis) |
static int |
toMinutes(long millis) |
static int |
toMonth(long millis)
Warning: the resulting value is an estimation supposing a month has 30 days.
|
static int |
toSeconds(long millis) |
static int |
toYears(long millis)
Warning: the resulting value is an estimation supposing a month has 30 days.
|
static TimeSpan |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeSpan[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeSpan SECOND
public static final TimeSpan MINUTE
public static final TimeSpan HOUR
public static final TimeSpan DAY
public static final TimeSpan MONTH
public static final TimeSpan YEAR
public static TimeSpan[] values()
for (TimeSpan c : TimeSpan.values()) System.out.println(c);
public static TimeSpan valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getText(java.lang.Object... args)
NlsKey
public java.lang.String getAppKey()
NlsKey
public java.lang.String getSubKey()
NlsKey
public int getValue()
public static int toSeconds(long millis)
public static int toMinutes(long millis)
public static int toHours(long millis)
public static int toDays(long millis)
public static int toMonth(long millis)
public static int toYears(long millis)
toMonth(long)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.