Package org.opennms.netmgt.config.utils
Class ConfigUtils
- java.lang.Object
-
- org.opennms.netmgt.config.utils.ConfigUtils
-
public abstract class ConfigUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ConfigUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
assertMatches(String value, Pattern pattern, String name)
static <T extends Number>
TassertMinimumInclusive(T value, long minimum, String name)
static <T extends Collection<?>>
TassertMinimumSize(T value, long minimum, String name)
static <T> T
assertNotEmpty(T value, String name)
static <T> T
assertNotNull(T value, String name)
static <K,T>
TassertOnlyContains(T value, Collection<K> in, String name)
static String
normalizeAndInternString(String value)
static String
normalizeAndTrimString(String value)
static String
normalizeString(String s)
-
-
-
Method Detail
-
assertNotNull
public static <T> T assertNotNull(T value, String name) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
assertNotEmpty
public static <T> T assertNotEmpty(T value, String name) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
assertMinimumInclusive
public static <T extends Number> T assertMinimumInclusive(T value, long minimum, String name)
-
assertMinimumSize
public static <T extends Collection<?>> T assertMinimumSize(T value, long minimum, String name)
-
assertOnlyContains
public static <K,T> T assertOnlyContains(T value, Collection<K> in, String name)
-
-