Package cn.lm.mybatis.mapper.util
Class Assert
java.lang.Object
cn.lm.mybatis.mapper.util.Assert
- Author:
- liuzh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic Object[]static Stringstatic <T> Collection<T>notEmpty(Collection<T> collection, String errorMsg) static <K,V> Map<K, V> static <T> T
-
Constructor Details
-
Assert
public Assert()
-
-
Method Details
-
isTrue
- Throws:
IllegalArgumentException
-
isFalse
- Throws:
IllegalArgumentException
-
isNull
- Throws:
IllegalArgumentException
-
notNull
- Throws:
NullPointerException
-
notEmpty
- Throws:
IllegalArgumentException
-
notEmpty
- Throws:
IllegalArgumentException
-
notEmpty
public static <T> Collection<T> notEmpty(Collection<T> collection, String errorMsg) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
notEmpty
public static <K,V> Map<K,V> notEmpty(Map<K, V> map, String errorMsg) throws IllegalArgumentException- Throws:
IllegalArgumentException
-