public enum OutputId extends Enum<OutputId>
Enum Constant and Description |
---|
A
Output A.
|
B
Output B.
|
C
Output C.
|
D
Output D.
|
E
Output E.
|
F
Output F.
|
G
Output G.
|
H
Output H.
|
Modifier and Type | Field and Description |
---|---|
static Set<OutputId> |
ALL
Convenience constant for specifying all output ports.
|
Modifier and Type | Method and Description |
---|---|
static Set<OutputId> |
decodeByteToSet(byte b)
|
static <T extends Enum<T>> |
encodeSetToByte(Set<T> set)
|
static OutputId |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OutputId[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OutputId A
public static final OutputId B
public static final OutputId C
public static final OutputId D
public static final OutputId E
public static final OutputId F
public static final OutputId G
public static final OutputId H
public static OutputId[] values()
for (OutputId c : OutputId.values()) System.out.println(c);
public static OutputId valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static <T extends Enum<T>> byte encodeSetToByte(Set<T> set)
Set
of Enum
s to a byte. Uses the
ordinal of the Enum as the position of the bit in the byte to set high.T
- type of Enum, only used with OutputId
internallyset
- set of values to be encodedCopyright © 2016–2023. All rights reserved.