public enum ReturnCode extends java.lang.Enum<ReturnCode>
This is a mixin class to provide enumed return codes that are commonly utilised in connector listener related sub-classes. To use this class, sub-class should inherit this class as a public super class, and declare CONNLISTENERSTATUS_ENUM defined below. Consequently, ReturnCode type that is typedefed by this macro can be used in the sub-class, and enumed identifiers are imported to the class's namespace.
| Enum Constant and Description |
|---|
BOTH_CHANGED |
DATA_CHANGED |
INFO_CHANGED |
NO_CHANGE |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static ReturnCode |
or(ReturnCode ret,
ReturnCode flag) |
static ReturnCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReturnCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReturnCode NO_CHANGE
public static final ReturnCode INFO_CHANGED
public static final ReturnCode DATA_CHANGED
public static final ReturnCode BOTH_CHANGED
public static ReturnCode[] values()
for (ReturnCode c : ReturnCode.values()) System.out.println(c);
public static ReturnCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ReturnCode or(ReturnCode ret, ReturnCode flag)
public int getValue()