Package com.isode.mhfcm
Enum ACP127Circuit.ACP127CircuitMode
- java.lang.Object
-
- java.lang.Enum<ACP127Circuit.ACP127CircuitMode>
-
- com.isode.mhfcm.ACP127Circuit.ACP127CircuitMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ACP127Circuit.ACP127CircuitMode>
- Enclosing class:
- ACP127Circuit
public static enum ACP127Circuit.ACP127CircuitMode extends java.lang.Enum<ACP127Circuit.ACP127CircuitMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BROADCAST_RECEIVER
A broadcast receiver circuitBROADCAST_SENDER
A broadcast sender circuitOTHER
Undefined circuit typePOINT_TO_POINT
A standard point-to-point circuit
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIntegerValue()
Determine the integer value corresponding to this mode (e.g.static ACP127Circuit.ACP127CircuitMode
getValueFor(int v)
Get the enum corresponding to a particular integer valuestatic ACP127Circuit.ACP127CircuitMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ACP127Circuit.ACP127CircuitMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POINT_TO_POINT
public static final ACP127Circuit.ACP127CircuitMode POINT_TO_POINT
A standard point-to-point circuit
-
BROADCAST_SENDER
public static final ACP127Circuit.ACP127CircuitMode BROADCAST_SENDER
A broadcast sender circuit
-
BROADCAST_RECEIVER
public static final ACP127Circuit.ACP127CircuitMode BROADCAST_RECEIVER
A broadcast receiver circuit
-
OTHER
public static final ACP127Circuit.ACP127CircuitMode OTHER
Undefined circuit type
-
-
Method Detail
-
values
public static ACP127Circuit.ACP127CircuitMode[] 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 (ACP127Circuit.ACP127CircuitMode c : ACP127Circuit.ACP127CircuitMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ACP127Circuit.ACP127CircuitMode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getIntegerValue
public int getIntegerValue()
Determine the integer value corresponding to this mode (e.g. POINT_TO_POINT=1, BROADCAST_SENDER=2, BROADCAST_RECEIVER=3).- Returns:
- the integer value for this mode
-
getValueFor
public static ACP127Circuit.ACP127CircuitMode getValueFor(int v)
Get the enum corresponding to a particular integer value- Parameters:
v
- the integer- Returns:
- the corresponding enum, or null if there isn't one.
-
-