public static enum IpAddress.Type extends Enum<IpAddress.Type>
| Modifier and Type | Method and Description |
|---|---|
int |
getSize() |
String |
ipToString(int[] ip) |
static IpAddress.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IpAddress.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IpAddress.Type IPV4
public static final IpAddress.Type MAC
public static final IpAddress.Type TPV6
public static IpAddress.Type[] values()
for (IpAddress.Type c : IpAddress.Type.values()) System.out.println(c);
public static IpAddress.Type 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 getSize()
public String ipToString(int[] ip)
Copyright © 2020. All rights reserved.