net.jolsrv2.constants
Enum Values
java.lang.Object
java.lang.Enum<Values>
net.jolsrv2.constants.Values
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Values>
public enum Values
- extends java.lang.Enum<Values>
The class is defining the TLV values 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()
Returns the byte value of a TLV value |
static Values |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Values[] |
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 |
WILL_NEVER
public static final Values WILL_NEVER
WILL_LOW
public static final Values WILL_LOW
WILL_DEFAULT
public static final Values WILL_DEFAULT
WILL_HIGH
public static final Values WILL_HIGH
WILL_ALWAYS
public static final Values WILL_ALWAYS
HEARD
public static final Values HEARD
SYMMETRIC
public static final Values SYMMETRIC
LOST
public static final Values LOST
L_HOLD_TIME
public static final Values L_HOLD_TIME
HELLO_INTERVAL
public static final Values HELLO_INTERVAL
REFRESH_INTERVAL
public static final Values REFRESH_INTERVAL
TC_INTERVAL
public static final Values TC_INTERVAL
TRUE
public static final Values TRUE
values
public static final Values[] 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(Values c : Values.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Values 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()
- Returns the byte value of a TLV value
- Returns:
- the byte value