Package net.sf.eBus.config
Enum EConfigure.ConnectionRole
- java.lang.Object
-
- java.lang.Enum<EConfigure.ConnectionRole>
-
- net.sf.eBus.config.EConfigure.ConnectionRole
-
- All Implemented Interfaces:
Serializable,Comparable<EConfigure.ConnectionRole>
- Enclosing class:
- EConfigure
public static enum EConfigure.ConnectionRole extends Enum<EConfigure.ConnectionRole>
Defines remote connection side, either acceptor or initiator.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EConfigure.ConnectionRolevalueOf(String name)Returns the enum constant of this type with the specified name.static EConfigure.ConnectionRole[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIATOR
public static final EConfigure.ConnectionRole INITIATOR
This side initiated the connection.
-
ACCEPTOR
public static final EConfigure.ConnectionRole ACCEPTOR
This side accepted the connection.
-
-
Method Detail
-
values
public static EConfigure.ConnectionRole[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EConfigure.ConnectionRole c : EConfigure.ConnectionRole.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EConfigure.ConnectionRole valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-