public abstract class ConstantObject
extends java.lang.Object
enum
data types in Java 1.5. The main purpose of such
is to enforce stricter type safety than would otherwise be available to
simple int
or String
constants.Modifier and Type | Method and Description |
---|---|
java.util.List |
getEnumeratedList()
Returns a list of the enumerated type members for this type.
|
int |
getIntValue()
Returns the enumerated type's
int representation. |
java.lang.String |
getLocalizedStringValue()
Returns the enumerated type's localized
String representation
based upon the default Locale . |
java.lang.String |
getLocalizedStringValue(java.util.Locale locale)
Returns the enumerated type's localized
String representation
based upon the specified Locale . |
java.lang.String |
getStringValue()
Returns the enumerated type's non-localized
String representation. |
public int getIntValue()
int
representation.int
representation.public java.lang.String getStringValue()
String
representation.String
representation.public java.lang.String getLocalizedStringValue()
String
representation
based upon the default Locale
.String
representation.public java.lang.String getLocalizedStringValue(java.util.Locale locale)
String
representation
based upon the specified Locale
.locale
- the Locale
to base the localized String
representation upon.String
representation.public java.util.List getEnumeratedList()
List
of enumberated type members.© Copyright IBM Corp. 2006, 2013. All Rights Reserved.