public class EmptyUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
static boolean |
isEmpty(java.lang.String obj)
Checks if is empty.
|
static boolean |
isGreaterThan(java.lang.String arg1,
java.lang.String arg2)
Checks if is greater than.
|
static boolean |
isLessThan(java.lang.String arg1,
java.lang.String arg2)
Checks if is less than.
|
static void |
isNotValidArgument(java.lang.String exceptionMessage)
Checks if is not valid argument.
|
static boolean |
isNull(java.lang.Object obj)
Checks if is null.
|
static boolean |
isNullOrEmpty(java.util.List list)
Checks if a list is null or empty.
|
static boolean |
isNullOrEmpty(java.util.Map map)
Checks if a map is null or empty.
|
static boolean |
isNullOrEmpty(java.lang.Object[] obj)
Checks if is null or empty.
|
static boolean |
isNullOrEmpty(java.util.Set obj)
Checks if is null or empty.
|
static boolean |
isNullOrEmpty(java.lang.String obj)
Checks if is null or empty.
|
static void |
notEmpty(java.util.List object,
java.lang.String exceptionMessage)
Deprecated.
|
static void |
notEmpty(java.util.Map object,
java.lang.String exceptionMessage)
Deprecated.
|
static void |
notEmpty(java.lang.Object obj,
java.lang.String exceptionMessage)
Deprecated.
|
static void |
notEmpty(java.util.Set object,
java.lang.String exceptionMessage)
Deprecated.
|
static void |
notEmpty(java.lang.String object,
java.lang.String exceptionMessage)
Deprecated.
|
static void |
notEmptyRuntime(java.lang.Object obj,
java.lang.String exceptionMessage)
Not empty runtime.
|
static void |
notNegative(java.lang.Integer object,
java.lang.String exceptionMessage)
Not negative.
|
static void |
notNull(java.lang.Object object,
java.lang.String exceptionMessage)
Deprecated.
|
static void |
notZero(java.lang.Integer object,
java.lang.String exceptionMessage)
Not zero.
|
static java.lang.String |
optimizeToString(java.lang.String... arguments)
Optimize to string.
|
static void |
validateNotNull(java.lang.Object obj,
java.lang.String exceptionMessage)
Not empty.
|
static void |
validateNotNullOrEmpty(java.util.List object,
java.lang.String exceptionMessage)
Not empty.
|
static void |
validateNotNullOrEmpty(java.util.Map object,
java.lang.String exceptionMessage)
Not empty.
|
static void |
validateNotNullOrEmpty(java.util.Set object,
java.lang.String exceptionMessage)
Not empty.
|
static void |
validateNotNullOrEmpty(java.lang.String object,
java.lang.String exceptionMessage)
Not empty.
|
public static boolean isNull(java.lang.Object obj)
obj
- the objpublic static boolean isNullOrEmpty(java.util.Map map)
map
- public static boolean isNullOrEmpty(java.util.List list)
list
- public static boolean isNullOrEmpty(java.lang.Object[] obj)
obj
- the objpublic static boolean isNullOrEmpty(java.util.Set obj)
obj
- the objpublic static boolean isEmpty(java.lang.String obj)
obj
- the objpublic static boolean isNullOrEmpty(java.lang.String obj)
obj
- the obj@Deprecated public static void notEmpty(java.lang.Object obj, java.lang.String exceptionMessage)
obj
- the objexceptionMessage
- the exception messagepublic static void validateNotNull(java.lang.Object obj, java.lang.String exceptionMessage)
obj
- the objexceptionMessage
- the exception messagepublic static void notEmptyRuntime(java.lang.Object obj, java.lang.String exceptionMessage)
obj
- the objexceptionMessage
- the exception message@Deprecated public static void notEmpty(java.lang.String object, java.lang.String exceptionMessage)
object
- the objectexceptionMessage
- the exception messagepublic static void validateNotNullOrEmpty(java.lang.String object, java.lang.String exceptionMessage)
object
- the objectexceptionMessage
- the exception message@Deprecated public static void notEmpty(java.util.Set object, java.lang.String exceptionMessage)
object
- the objectexceptionMessage
- the exception messagepublic static void validateNotNullOrEmpty(java.util.Set object, java.lang.String exceptionMessage)
object
- the objectexceptionMessage
- the exception message@Deprecated public static void notEmpty(java.util.List object, java.lang.String exceptionMessage)
object
- the objectexceptionMessage
- the exception messagepublic static void validateNotNullOrEmpty(java.util.List object, java.lang.String exceptionMessage)
object
- the objectexceptionMessage
- the exception message@Deprecated public static void notEmpty(java.util.Map object, java.lang.String exceptionMessage)
object
- the objectexceptionMessage
- the exception messagepublic static void validateNotNullOrEmpty(java.util.Map object, java.lang.String exceptionMessage)
object
- the objectexceptionMessage
- the exception messagepublic static void notNegative(java.lang.Integer object, java.lang.String exceptionMessage)
object
- the objectexceptionMessage
- the exception message@Deprecated public static void notNull(java.lang.Object object, java.lang.String exceptionMessage)
object
- the objectexceptionMessage
- the exception messagepublic static void notZero(java.lang.Integer object, java.lang.String exceptionMessage)
object
- the objectexceptionMessage
- the exception messagepublic static void isNotValidArgument(java.lang.String exceptionMessage)
exceptionMessage
- the exception messagepublic static java.lang.String optimizeToString(java.lang.String... arguments)
arguments
- the argumentspublic static boolean isLessThan(java.lang.String arg1, java.lang.String arg2)
arg1
- the arg 1arg2
- the arg 2public static boolean isGreaterThan(java.lang.String arg1, java.lang.String arg2)
arg1
- the arg 1arg2
- the arg 2Copyright © 2018 Pegasystems Inc. All Rights Reserved.