public class NotInterfaceCriteria extends Object implements InterfaceCriteria
InterfaceCriteria
that tests whether a given network interface and
address satisfy none of a contained set of InterfaceCriteria
.Constructor and Description |
---|
NotInterfaceCriteria(Set<InterfaceCriteria> criteria)
Creates a new AnyInterfaceCriteria
|
Modifier and Type | Method and Description |
---|---|
InetAddress |
isAcceptable(NetworkInterface networkInterface,
InetAddress address)
Gets whether the given network interface and address are acceptable for
use.
|
public NotInterfaceCriteria(Set<InterfaceCriteria> criteria)
criteria
- the criteria to check to see if none are satisfied.
Cannot be null
IllegalArgumentException
- if criteria
is null
public InetAddress isAcceptable(NetworkInterface networkInterface, InetAddress address) throws SocketException
address
parameter. For those criteria which override the configured address, the override address should
be returned.isAcceptable
in interface InterfaceCriteria
networkInterface
- the network interface. Cannot be null
address
- an address that is associated with networkInterface
.
Cannot be null
address
if networkInterface
address satisfy none of a contained set of criteria.SocketException
- if evaluating the state of networkInterface
results in oneCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.