public enum IpVersion extends Enum<IpVersion>
Enum Constant and Description |
---|
IPV4 |
IPV6 |
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
static IpVersion |
fromValue(String value) |
static IpVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IpVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
int |
version() |
public static final IpVersion IPV4
public static final IpVersion IPV6
public static final IpVersion UNRECOGNIZED
public static IpVersion[] values()
for (IpVersion c : IpVersion.values()) System.out.println(c);
public static IpVersion 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 version()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.