|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<EventType>
org.opensha.commons.eq.cat.util.EventType
public enum EventType
Values for different earthquake event types.
| Enum Constant Summary | |
|---|---|
LOCAL
Local event value. |
|
NUCLEAR
Nuclear blast event value. |
|
QUARRY
Quarry blast event value. |
|
REGIONAL
Regional event value. |
|
SONIC
Sonic boom event value. |
|
TELESEISM
Teleseismic event value. |
|
UNKNOWN
Unknown event type value. |
|
| Method Summary | |
|---|---|
String |
abbr()
Returns the abbreviation commonly used to identify this EventType (in earthquake catalogs). |
int |
id()
Returns the id value for this EventType. |
static EventType |
parse(String s)
Convert a string to an EventType. |
EventType |
typeForID(int id)
Returns the EventType corresponding to the supplied
id value, or null if no EventType
with the supplied id exists. |
static EventType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EventType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final EventType UNKNOWN
public static final EventType LOCAL
public static final EventType REGIONAL
public static final EventType TELESEISM
public static final EventType QUARRY
public static final EventType SONIC
public static final EventType NUCLEAR
| Method Detail |
|---|
public static EventType[] values()
for (EventType c : EventType.values()) System.out.println(c);
public static EventType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic EventType typeForID(int id)
EventType corresponding to the supplied
id value, or null if no EventType
with the supplied id exists.
id - to look up
EventTypepublic int id()
id value for this EventType. The
id is used when storing (persisting) this value.
EventType idpublic String abbr()
EventType (in earthquake catalogs).
EventTypepublic static EventType parse(String s)
EventType. If the string does not
match any value, EventType.UNKNOWN is returned. This method
is case insensitive.
s - string to convert
EventType value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||