org.flexiblepower.messaging
public enum Cardinality extends java.lang.Enum<Cardinality>
Port can be handle multiple Connections.| Enum Constant and Description |
|---|
MULTIPLE
When a
Port can handle multiple connections at the same time. |
SINGLE
When a
Port can only accept a single connection at a time. |
| Modifier and Type | Method and Description |
|---|---|
static Cardinality |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Cardinality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Cardinality SINGLE
Port can only accept a single connection at a time. This means that a previous Connection
should be disconnected first before the next one is connected.public static final Cardinality MULTIPLE
Port can handle multiple connections at the same time.public static Cardinality[] values()
for (Cardinality c : Cardinality.values()) System.out.println(c);
public static Cardinality 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 null