edu.stanford.hci.r3.util.communications
Enum COMPort
java.lang.Object
java.lang.Enum<COMPort>
edu.stanford.hci.r3.util.communications.COMPort
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<COMPort>
public enum COMPort
- extends java.lang.Enum<COMPort>
When translated to a string, JavaCOMM can map this to a physical COM port.
This software is distributed under the BSD License.
Field Summary |
static java.lang.Object[] |
PORTS
|
Method Summary |
static COMPort |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static COMPort[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
COM1
public static final COMPort COM1
COM2
public static final COMPort COM2
COM3
public static final COMPort COM3
COM4
public static final COMPort COM4
COM5
public static final COMPort COM5
COM6
public static final COMPort COM6
COM7
public static final COMPort COM7
COM8
public static final COMPort COM8
COM9
public static final COMPort COM9
PORTS
public static final java.lang.Object[] PORTS
values
public static COMPort[] 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 (COMPort c : COMPort.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static COMPort 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 name
java.lang.NullPointerException
- if the argument is null