Enum Class IslandSubcategory
- All Implemented Interfaces:
SubCategory
,Serializable
,Comparable<IslandSubcategory>
,Constable
This
enum
type is generated from XML,
UID 715,
marshal size 16;
IslandSubcategory has 7 enumerations total.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIslands 1,000-2,499 km2 (386-965 sq mi)Islands 10,000-24,999 km2 (3,861-9,652 sq mi)Islands 100,000 km2 (39,000 sq mi) and GreaterIslands 2,500-4,999 km2 (965-1,930 sq mi)Islands 25,000-99,999 km2 (9,653-38,610 sq mi)Islands 5,000-9,999 km2 (1,931-3,861 sq mi)Other -
Method Summary
Modifier and TypeMethodDescriptionProvide enumeration descriptionstatic int
bit width for this enumerationstatic IslandSubcategory
getEnumForValue
(int value) Provide enumeration for a given valueint
Returns size of this serialized (marshalled) object in bytesgetName()
Provide nameint
getValue()
Provide enumeration valuevoid
marshal
(DataOutputStream dos) Marshal value to DataOutputStreamvoid
marshal
(ByteBuffer byteBuffer) Marshal value to ByteBuffertoString()
Provide simple identifierstatic IslandSubcategory
Unmarshal value to DataInputStreamstatic IslandSubcategory
unmarshalEnum
(ByteBuffer byteBuffer) Unmarshal enumeration value to ByteBufferstatic IslandSubcategory
Returns the enum constant of this class with the specified name.static IslandSubcategory[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OTHER
Other -
ISLANDS_1_000_2_499_KM2_386_965_SQ_MI
Islands 1,000-2,499 km2 (386-965 sq mi) -
ISLANDS_2_500_4_999_KM2_965_1_930_SQ_MI
Islands 2,500-4,999 km2 (965-1,930 sq mi) -
ISLANDS_5_000_9_999_KM2_1_931_3_861_SQ_MI
Islands 5,000-9,999 km2 (1,931-3,861 sq mi) -
ISLANDS_10_000_24_999_KM2_3_861_9_652_SQ_MI
Islands 10,000-24,999 km2 (3,861-9,652 sq mi) -
ISLANDS_25_000_99_999_KM2_9_653_38_610_SQ_MI
Islands 25,000-99,999 km2 (9,653-38,610 sq mi) -
ISLANDS_100_000_KM2_39_000_SQ_MI_AND_GREATER
Islands 100,000 km2 (39,000 sq mi) and Greater
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Provide enumeration value- Specified by:
getValue
in interfaceSubCategory
- Returns:
- integer value
-
getDescription
Provide enumeration description- Specified by:
getDescription
in interfaceSubCategory
- Returns:
- description
-
getEnumBitWidth
public static int getEnumBitWidth()bit width for this enumeration- Returns:
- number of bits wide
-
getEnumForValue
Provide enumeration for a given value- Parameters:
value
- integer value of interest- Returns:
- enumeration corresponding to numeric value
-
marshal
Marshal value to DataOutputStream- Parameters:
dos
- DataOutputStream for output- Throws:
IOException
- input-output error- See Also:
-
marshal
Marshal value to ByteBuffer- Parameters:
byteBuffer
- ByteBuffer for output- Throws:
IOException
- input-output errorException
- See Also:
-
unmarshalEnum
Unmarshal value to DataInputStream- Parameters:
dis
- DataInputStream for input- Returns:
- enumeration of interest
- Throws:
Exception
- unmarshalling input-output error- See Also:
-
unmarshalEnum
Unmarshal enumeration value to ByteBuffer- Parameters:
byteBuffer
- ByteBuffer for input- Returns:
- enumeration of interest
- Throws:
Exception
- unmarshalling input-output error- See Also:
-
getMarshalledSize
public int getMarshalledSize()Returns size of this serialized (marshalled) object in bytes- Returns:
- serialized size in bytes
- See Also:
-
getName
-
toString
Provide simple identifier- Overrides:
toString
in classEnum<IslandSubcategory>
- Returns:
- ID number and name
-