net.jolsrv2.constants
Enum TlvTypes
java.lang.Object
java.lang.Enum<TlvTypes>
net.jolsrv2.constants.TlvTypes
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<TlvTypes>
public enum TlvTypes
- extends java.lang.Enum<TlvTypes>
The class is defining the TLV types used in OLSRv2, and their numeric values.
The values of these constants are at the time of writing listed as TBD
in the Internet-Draft.
- Author:
- Andreas Schjønhaug
Method Summary |
byte |
byteValue()
Return the byte value of a TLV |
static TlvTypes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TlvTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
WILLINGNESS
public static final TlvTypes WILLINGNESS
VALIDITY_TIME
public static final TlvTypes VALIDITY_TIME
INTERVAL_TIME
public static final TlvTypes INTERVAL_TIME
LINK_STATUS
public static final TlvTypes LINK_STATUS
OTHER_IF
public static final TlvTypes OTHER_IF
MPR
public static final TlvTypes MPR
CONTENT_SEQ_NO
public static final TlvTypes CONTENT_SEQ_NO
PREFIX_LENGTH
public static final TlvTypes PREFIX_LENGTH
GATEWAY
public static final TlvTypes GATEWAY
values
public static final TlvTypes[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(TlvTypes c : TlvTypes.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static TlvTypes 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
byteValue
public byte byteValue()
- Return the byte value of a TLV
- Returns:
- the byte value