Package | Description |
---|---|
com.basilv.examples.enums |
Example for article Advanced Uses of Java 5 Enums.
|
Modifier and Type | Method and Description |
---|---|
static Terrain |
TerrainUsage.getFromString(String terrainId) |
static Terrain |
Terrain.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Terrain[] |
Terrain.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Java Examples available from http://www.basilv.com/psd/software Copyright © 2009 by Basil Vandegriend. All Rights Reserved.