Check the
Array/Collection/Map/Stringis or not empty
- Utility classes preferred to use if available, otherwise using JDK methods.
- Array
org.apache.commons.lang3.ArrayUtilsorg.apache.commons.lang.ArrayUtils
- Collections
org.apache.commons.collections4.CollectionUtilsorg.apache.commons.collections.CollectionUtilsorg.springframework.util.CollectionUtils
- Map
org.apache.commons.collections4.MapUtilsorg.apache.commons.collections.MapUtilsorg.springframework.util.CollectionUtils
- String
org.apache.commons.lang3.StringUtilsorg.apache.commons.lang.StringUtilsorg.springframework.util.StringUtils
- Array
- Available postfix
.isEmptyCheck the target object if is empty,boolean expression.isNotEmptyCheck the target object if not empty,boolean expression.ifEmptyCheck the target object if is empty,if condition code block.ifNotEmptyCheck the target object if not empty,if condition code block