Package org.skr.common.util
Class Checker
java.lang.Object
org.skr.common.util.Checker
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsKey(Map map, Object key) convertViolationsToErrorInfo(Set<jakarta.validation.ConstraintViolation<T>> violations) static booleanequalsAndNotNull(Object lhs, Object rhs) static booleanisAfterOrEqual(LocalDateTime dt1, LocalDateTime dt2) static booleanisBeforeOrEqual(LocalDateTime dt1, LocalDateTime dt2) static booleanstatic booleanisEmpty(byte[] array) static booleanisEmpty(double[] array) static booleanisEmpty(int[] array) static booleanisEmpty(long[] array) static booleanstatic booleanisEmpty(CharSequence text) static booleanstatic booleanstatic booleanisEmpty(Collection collection) static booleanstatic booleanstatic booleanisEmpty(Optional<? extends CharSequence> text) static booleanisEmptyCollection(Optional<? extends Collection> collection) static booleanisExistedFile(File file) static booleanstatic booleanisPositive(Integer integer) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic boolean
-
Method Details
-
isZero
-
isZero
-
isZero
-
isZero
-
isPositive
-
isEmpty
-
isEmpty
-
isEmpty
-
isExistedFile
-
isEmpty
public static boolean isEmpty(byte[] array) -
isEmpty
public static boolean isEmpty(int[] array) -
isEmpty
public static boolean isEmpty(long[] array) -
isEmpty
public static boolean isEmpty(double[] array) -
isEmpty
-
isEmpty
-
isEmptyCollection
-
isEmpty
-
isEmpty
-
containsKey
-
isEmpty
-
isDeleted
-
isAfterOrEqual
-
isBeforeOrEqual
-
isNumber
-
isTrue
-
isTrue
-
isTrue
-
convertViolationsToErrorInfo
-
equalsAndNotNull
-