public final class DurationUnits
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static DurationUnits |
DAYS
Specifies a retention period in days.
|
static int |
DAYS_AS_INT
An
int value associated with the DAYS instance of this class. |
static DurationUnits |
HOURS
Specifies a retention period in hours.
|
static int |
HOURS_AS_INT
An
int value associated with the HOURS instance of this class. |
static DurationUnits |
MINUTES
Specifies a retention period in minutes.
|
static int |
MINUTES_AS_INT
An
int value associated with the MINUTES instance of this class. |
static DurationUnits |
MONTHS
Specifies a retention period in months.
|
static int |
MONTHS_AS_INT
An
int value associated with the MONTHS instance of this class. |
static DurationUnits |
SECONDS
Specifies a retention period in seconds.
|
static int |
SECONDS_AS_INT
An
int value associated with the SECONDS instance of this class. |
static DurationUnits |
WEEKS
Specifies a retention period in weeks.
|
static int |
WEEKS_AS_INT
An
int value associated with the WEEKS instance of this class. |
static DurationUnits |
YEARS
Specifies a retention period in years.
|
static int |
YEARS_AS_INT
An
int value associated with the YEARS instance of this class. |
Modifier and Type | Method and Description |
---|---|
static DurationUnits |
getInstanceFromInt(int value)
Returns an instance of this class using its associated integer value.
|
int |
getValue()
Returns the internal integer value associated with a specific instance of this class.
|
java.lang.String |
toString()
Returns a
String representation of this enumeration instance. |
public static final int MINUTES_AS_INT
int
value associated with the MINUTES instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final DurationUnits MINUTES
public static final int DAYS_AS_INT
int
value associated with the DAYS instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final DurationUnits DAYS
public static final int SECONDS_AS_INT
int
value associated with the SECONDS instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final DurationUnits SECONDS
public static final int WEEKS_AS_INT
int
value associated with the WEEKS instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final DurationUnits WEEKS
public static final int YEARS_AS_INT
int
value associated with the YEARS instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final DurationUnits YEARS
public static final int MONTHS_AS_INT
int
value associated with the MONTHS instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final DurationUnits MONTHS
public static final int HOURS_AS_INT
int
value associated with the HOURS instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final DurationUnits HOURS
public int getValue()
getInstanceFromInt(int)
public java.lang.String toString()
String
representation of this enumeration instance.toString
in class java.lang.Object
public static DurationUnits getInstanceFromInt(int value)
value
- The integer value. (See the *_AS_INT fields.)EngineRuntimeException
- If an enumeration instance with the given
ordinal value does not exist.getValue()
© Copyright IBM Corporation 2006, 2015. All rights reserved.