public enum IPVersionType extends Enum<IPVersionType>
Modifier and Type | Method and Description |
---|---|
int |
getVersion()
Gets the version in Integer form
|
static IPVersionType |
valueOf(int value) |
static IPVersionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IPVersionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IPVersionType V4
public static final IPVersionType V6
public static IPVersionType[] values()
for (IPVersionType c : IPVersionType.values()) System.out.println(c);
public static IPVersionType 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 int getVersion()
public static IPVersionType valueOf(int value)
Copyright © 2017. All rights reserved.