|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<TncPacketType>
org.discotools.io.aprs.tnc.TncPacketType
public enum TncPacketType
Enum Constant Summary | |
---|---|
T_EVENT
The 'T_EVENT' literal object. |
|
T_REQUEST
The 'T_REQUEST' literal object. |
|
T_RESPONSE
The 'T_RESPONSE' literal object. |
|
T_UNKNOWN
The 'T_UNKNOWN' literal object. |
Field Summary | |
---|---|
static int |
T_EVENT_VALUE
The 'T_EVENT' literal value. |
static int |
T_REQUEST_VALUE
The 'T_REQUEST' literal value. |
static int |
T_RESPONSE_VALUE
The 'T_RESPONSE' literal value. |
static int |
T_UNKNOWN_VALUE
The 'T_UNKNOWN' literal value. |
static List<TncPacketType> |
VALUES
A public read-only list of all the 'TNC Packet Type' enumerators. |
Method Summary | |
---|---|
static TncPacketType |
get(int value)
Returns the 'TNC Packet Type' literal with the specified integer value. |
static TncPacketType |
get(String literal)
Returns the 'TNC Packet Type' literal with the specified literal value. |
static TncPacketType |
getByName(String name)
Returns the 'TNC Packet Type' literal with the specified name. |
String |
getLiteral()
|
String |
getName()
|
int |
getValue()
|
String |
toString()
Returns the literal value of the enumerator, which is its string representation. |
static TncPacketType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TncPacketType[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TncPacketType T_UNKNOWN
T_UNKNOWN_VALUE
public static final TncPacketType T_EVENT
T_EVENT
public static final TncPacketType T_REQUEST
T_REQUEST_VALUE
public static final TncPacketType T_RESPONSE
T_RESPONSE_VALUE
Field Detail |
---|
public static final int T_UNKNOWN_VALUE
T_UNKNOWN_VALUE
,
Constant Field Valuespublic static final int T_EVENT_VALUE
T_EVENT
,
Constant Field Valuespublic static final int T_REQUEST_VALUE
T_REQUEST
,
Constant Field Valuespublic static final int T_RESPONSE_VALUE
T_RESPONSE
,
Constant Field Valuespublic static final List<TncPacketType> VALUES
Method Detail |
---|
public static TncPacketType[] values()
for (TncPacketType c : TncPacketType.values()) System.out.println(c);
public static TncPacketType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static TncPacketType get(String literal)
public static TncPacketType getByName(String name)
public static TncPacketType get(int value)
public int getValue()
public String getName()
public String getLiteral()
public String toString()
toString
in class Enum<TncPacketType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |