public final class IpChecker extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
matches(String pExpected,
String pToCheck)
Check whether a given IP Adress falls within a subnet or is equal to
|
public static boolean matches(String pExpected, String pToCheck)
pExpected
- either a simple IP adress (without "/") or a net specification
including a netmask (e.g "/24" or "/255.255.255.0")pToCheck
- the ip address to checkCopyright © 2016. All rights reserved.