public abstract class IPLike extends Object
IPLike class.
Constructor and Description |
---|
IPLike() |
Modifier and Type | Method and Description |
---|---|
static int |
countChar(char charIn,
String stingIn)
countChar
|
static boolean |
matches(InetAddress address,
String pattern) |
static boolean |
matches(String address,
String pattern)
matches
|
static boolean |
matchNumericListOrRange(String value,
String patterns) |
static boolean |
matchNumericListOrRange(String value,
String patterns,
org.opennms.core.utils.IPLike.RangeMatcher matcher)
Use this method to match ranges, lists, and specific number strings
such as:
"200-300" or "200,300,501-700"
"*" matches any
This method is commonly used for matching IP octets or ports
|
static boolean |
matchRange(String value,
String pattern)
Helper method in support of matchNumericListOrRange
|
static boolean |
matchRangeHex(String value,
String pattern)
Helper method in support of matchNumericListOrRange
|
public static boolean matches(InetAddress address, String pattern)
public static boolean matchNumericListOrRange(String value, String patterns)
public static boolean matchNumericListOrRange(String value, String patterns, org.opennms.core.utils.IPLike.RangeMatcher matcher)
public static boolean matchRange(String value, String pattern)
public static boolean matchRangeHex(String value, String pattern)
Copyright © 2021. All rights reserved.