You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
603 B

package javax.sip;
public enum DialogState {
EARLY,
CONFIRMED,
TERMINATED;
public static final int _EARLY = EARLY.ordinal();
public static final int _CONFIRMED = CONFIRMED.ordinal();
public static final int _TERMINATED = TERMINATED.ordinal();
public static DialogState getObject(int state) {
try {
return values()[state];
} catch (IndexOutOfBoundsException e) {
throw new IllegalArgumentException(
"Invalid dialog state: " + state);
}
}
public int getValue() {
return ordinal();
}
}