Class Validate
java.lang.Object
com.twelvemonkeys.lang.Validate
Kind of like
org.apache.commons.lang.Validate. Just smarter. ;-)
Uses type parameterized return values, thus making it possible to check
constructor arguments before
they are passed on to super or this type constructors.
- Version:
- $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/lang/Validate.java#1 $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T extends CharSequence>
booleanisOnlyWhiteSpace(T pParameter) static booleanstatic <T> Tstatic <T> Collection<T> noNullElements(Collection<T> pParameter) static <T> Collection<T> noNullElements(Collection<T> pParameter, String pParamName) static <T> T[]noNullElements(T[] pParameter) static <T> T[]noNullElements(T[] pParameter, String pParamName) static <K,V> Map <K, V> noNullKeys(Map<K, V> pParameter) static <K,V> Map <K, V> noNullKeys(Map<K, V> pParameter, String pParamName) static <K,V> Map <K, V> noNullValues(Map<K, V> pParameter) static <K,V> Map <K, V> noNullValues(Map<K, V> pParameter, String pParamName) static <T> Collection<T> notEmpty(Collection<T> pParameter) static <T> Collection<T> notEmpty(Collection<T> pParameter, String pParamName) static <K,V> Map <K, V> static <K,V> Map <K, V> static <T extends CharSequence>
TnotEmpty(T pParameter) static <T> T[]notEmpty(T[] pParameter) static <T> T[]static <T extends CharSequence>
Tstatic <T> TnotNull(T pParameter) static <T> T
-
Field Details
-
UNSPECIFIED_PARAM_NAME
- See Also:
-
-
Constructor Details
-
Validate
private Validate()
-
-
Method Details
-
notNull
public static <T> T notNull(T pParameter) -
notNull
-
notEmpty
-
notEmpty
-
isOnlyWhiteSpace
-
notEmpty
public static <T> T[] notEmpty(T[] pParameter) -
notEmpty
-
notEmpty
-
notEmpty
-
notEmpty
-
notEmpty
-
noNullElements
public static <T> T[] noNullElements(T[] pParameter) -
noNullElements
-
noNullElements
-
noNullElements
-
noNullValues
-
noNullValues
-
noNullKeys
-
noNullKeys
-
isTrue
-
isTrue
-