public final class IpVersion extends NamedNumber<Byte,IpVersion>
Modifier and Type | Field and Description |
---|---|
static IpVersion |
IPV4
IPv4: 4
|
static IpVersion |
IPV6
IPv6: 6
|
static IpVersion |
PIP
PIP: 8
|
static IpVersion |
ST
ST: 5
|
static IpVersion |
TP_IX
TP/IX: 7
|
static IpVersion |
TUBA
TUBA: 9
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IpVersion o) |
static IpVersion |
getInstance(Byte value) |
static IpVersion |
register(IpVersion version) |
equals, hashCode, name, toString, value, valueAsString
public static final IpVersion IPV4
public static final IpVersion ST
public static final IpVersion IPV6
public static final IpVersion TP_IX
public static final IpVersion PIP
public static final IpVersion TUBA
public static IpVersion getInstance(Byte value)
value
- valuepublic static IpVersion register(IpVersion version)
version
- versionpublic int compareTo(IpVersion o)
compareTo
in interface Comparable<IpVersion>
compareTo
in class NamedNumber<Byte,IpVersion>
Copyright © 2011–2016 Pcap4J.org. All rights reserved.