public enum IpVersionEnum extends Enum<IpVersionEnum>
| Enum Constant and Description |
|---|
IPV4
Represents ipv4.
|
IPV6
Represents ipv6.
|
UNKNOWN
Represents unknown.
|
| Modifier and Type | Method and Description |
|---|---|
int |
ipVersionEnum()
Returns the attribute ipVersionEnum.
|
static IpVersionEnum |
of(int value)
Returns the object of ipVersionEnum for.
|
static IpVersionEnum |
of(String value)
Returns the object of ipVersionEnum for.
|
String |
toString() |
static IpVersionEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IpVersionEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IpVersionEnum UNKNOWN
public static final IpVersionEnum IPV4
public static final IpVersionEnum IPV6
public static IpVersionEnum[] values()
for (IpVersionEnum c : IpVersionEnum.values()) System.out.println(c);
public static IpVersionEnum valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static IpVersionEnum of(int value)
value - value of ipVersionEnum forpublic static IpVersionEnum of(String value)
value - value of ipVersionEnum forpublic int ipVersionEnum()
public String toString()
toString in class Enum<IpVersionEnum>Copyright © 2017. All rights reserved.