public static enum NetworkUtil.Filter extends java.lang.Enum<NetworkUtil.Filter> implements com.google.common.base.Predicate<java.net.NetworkInterface>
Enum Constant and Description |
---|
ALL
过滤器: 所有网卡
|
LOOPBACK
过滤器:LOOPBACK, see also
NetworkInterface.isLoopback() |
PHYICAL_ONLY
过滤器:物理网卡
|
UP
过滤器: 在线设备,see also
NetworkInterface.isUp() |
VIRTUAL
过滤器: 虚拟接口,see also
NetworkInterface.isVirtual() |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(java.net.NetworkInterface input) |
static NetworkUtil.Filter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NetworkUtil.Filter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkUtil.Filter ALL
public static final NetworkUtil.Filter UP
NetworkInterface.isUp()
public static final NetworkUtil.Filter VIRTUAL
NetworkInterface.isVirtual()
public static final NetworkUtil.Filter LOOPBACK
NetworkInterface.isLoopback()
public static final NetworkUtil.Filter PHYICAL_ONLY
public static NetworkUtil.Filter[] values()
for (NetworkUtil.Filter c : NetworkUtil.Filter.values()) System.out.println(c);
public static NetworkUtil.Filter valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean apply(java.net.NetworkInterface input)
apply
in interface com.google.common.base.Predicate<java.net.NetworkInterface>
Copyright © 2019. All rights reserved.