org.discotools.io.aprs.tnc
Enum TncPacketType

java.lang.Object
  extended by java.lang.Enum<TncPacketType>
      extended by org.discotools.io.aprs.tnc.TncPacketType
All Implemented Interfaces:
Serializable, Comparable<TncPacketType>

public enum TncPacketType
extends 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

T_UNKNOWN

public static final TncPacketType T_UNKNOWN
The 'T_UNKNOWN' literal object.

See Also:
T_UNKNOWN_VALUE

T_EVENT

public static final TncPacketType T_EVENT
The 'T_EVENT' literal object.

See Also:
T_EVENT

T_REQUEST

public static final TncPacketType T_REQUEST
The 'T_REQUEST' literal object.

See Also:
T_REQUEST_VALUE

T_RESPONSE

public static final TncPacketType T_RESPONSE
The 'T_RESPONSE' literal object.

See Also:
T_RESPONSE_VALUE
Field Detail

T_UNKNOWN_VALUE

public static final int T_UNKNOWN_VALUE
The 'T_UNKNOWN' literal value.

See Also:
T_UNKNOWN_VALUE, Constant Field Values

T_EVENT_VALUE

public static final int T_EVENT_VALUE
The 'T_EVENT' literal value.

See Also:
T_EVENT, Constant Field Values

T_REQUEST_VALUE

public static final int T_REQUEST_VALUE
The 'T_REQUEST' literal value.

See Also:
T_REQUEST, Constant Field Values

T_RESPONSE_VALUE

public static final int T_RESPONSE_VALUE
The 'T_RESPONSE' literal value.

See Also:
T_RESPONSE, Constant Field Values

VALUES

public static final List<TncPacketType> VALUES
A public read-only list of all the 'TNC Packet Type' enumerators.

Method Detail

values

public static TncPacketType[] 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 (TncPacketType c : TncPacketType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TncPacketType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

get

public static TncPacketType get(String literal)
Returns the 'TNC Packet Type' literal with the specified literal value.


getByName

public static TncPacketType getByName(String name)
Returns the 'TNC Packet Type' literal with the specified name.


get

public static TncPacketType get(int value)
Returns the 'TNC Packet Type' literal with the specified integer value.


getValue

public int getValue()

getName

public String getName()

getLiteral

public String getLiteral()

toString

public String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class Enum<TncPacketType>


Copyright © 2012-2013 DISCO Foundation. All Rights Reserved.