Enum TimeSince
- java.lang.Object
-
- java.lang.Enum<TimeSince>
-
- de.hybris.platform.assistedservicefacades.util.TimeSince
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetValue()TimeSincesetValue(long value)static TimeSincevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TimeSince[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOMENT
public static final TimeSince MOMENT
-
SECOND
public static final TimeSince SECOND
-
SECONDS
public static final TimeSince SECONDS
-
MINUTE
public static final TimeSince MINUTE
-
MINUTES
public static final TimeSince MINUTES
-
HOUR
public static final TimeSince HOUR
-
HOURS
public static final TimeSince HOURS
-
DAY
public static final TimeSince DAY
-
DAYS
public static final TimeSince DAYS
-
MONTH
public static final TimeSince MONTH
-
MONTHS
public static final TimeSince MONTHS
-
YEAR
public static final TimeSince YEAR
-
YEARS
public static final TimeSince YEARS
-
-
Method Detail
-
values
public static TimeSince[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TimeSince c : TimeSince.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeSince valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
setValue
public TimeSince setValue(long value)
-
getValue
public long getValue()
-
-