public static enum IpAddress.Type extends Enum<IpAddress.Type>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getSize() |
String |
ipToString(int[] ip) |
static IpAddress.Type |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static IpAddress.Type[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getSize()
public String ipToString(int[] ip)
Copyright © 2021. All rights reserved.