public static class Atmosphere.PressureChange
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private int |
code |
static Atmosphere.PressureChange |
FALLING |
static Atmosphere.PressureChange |
RISING |
private static long |
serialVersionUID |
static Atmosphere.PressureChange |
STEADY |
private java.lang.String |
text |
Modifier | Constructor and Description |
---|---|
private |
PressureChange(int code,
java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
static Atmosphere.PressureChange |
fromCode(int code)
Gets a PressureChange instance for this int code.
|
int |
getCode()
The integer code for this chage state
|
java.lang.String |
toString() |
private static final long serialVersionUID
public static final Atmosphere.PressureChange RISING
public static final Atmosphere.PressureChange STEADY
public static final Atmosphere.PressureChange FALLING
private final int code
private final java.lang.String text
public java.lang.String toString()
toString
in class java.lang.Object
public int getCode()
public static Atmosphere.PressureChange fromCode(int code)
code
- int code valuejava.lang.RuntimeException
- if no 0, 1, or 2.