- java.lang.Object
-
- org.pcap4j.packet.namednumber.NamedNumber<java.lang.Byte,IpV6RoutingType>
-
- org.pcap4j.packet.namednumber.IpV6RoutingType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IpV6RoutingType>
public final class IpV6RoutingType extends NamedNumber<java.lang.Byte,IpV6RoutingType>
IPv6 Routing Type- Since:
- pcap4j 1.4.0
- See Also:
- IANA Registry, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static IpV6RoutingTypeNIMRODNimrod: 1private static java.util.Map<java.lang.Byte,IpV6RoutingType>registrystatic IpV6RoutingTypeRPL_SOURCE_ROUTE_HEADERRPL Source Route Header: 3private static longserialVersionUIDstatic IpV6RoutingTypeSOURCE_ROUTESource Route: 0static IpV6RoutingTypeTYPE2_ROUTING_HEADERType 2 Routing Header: 2
-
Constructor Summary
Constructors Constructor Description IpV6RoutingType(java.lang.Byte value, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(IpV6RoutingType o)static IpV6RoutingTypegetInstance(java.lang.Byte value)static IpV6RoutingTyperegister(IpV6RoutingType number)java.lang.StringvalueAsString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
SOURCE_ROUTE
public static final IpV6RoutingType SOURCE_ROUTE
Source Route: 0
-
NIMROD
public static final IpV6RoutingType NIMROD
Nimrod: 1
-
TYPE2_ROUTING_HEADER
public static final IpV6RoutingType TYPE2_ROUTING_HEADER
Type 2 Routing Header: 2
-
RPL_SOURCE_ROUTE_HEADER
public static final IpV6RoutingType RPL_SOURCE_ROUTE_HEADER
RPL Source Route Header: 3
-
registry
private static final java.util.Map<java.lang.Byte,IpV6RoutingType> registry
-
-
Method Detail
-
getInstance
public static IpV6RoutingType getInstance(java.lang.Byte value)
- Parameters:
value- value- Returns:
- a IpV6RoutingHeaderType object.
-
register
public static IpV6RoutingType register(IpV6RoutingType number)
- Parameters:
number- number- Returns:
- a IpV6RoutingHeaderType object.
-
valueAsString
public java.lang.String valueAsString()
- Overrides:
valueAsStringin classNamedNumber<java.lang.Byte,IpV6RoutingType>- Returns:
- a string representation of this value.
-
compareTo
public int compareTo(IpV6RoutingType o)
- Specified by:
compareToin interfacejava.lang.Comparable<IpV6RoutingType>- Specified by:
compareToin classNamedNumber<java.lang.Byte,IpV6RoutingType>
-
-