Package org.pentaho.di.core.util
Class CollectionPredicates
java.lang.Object
org.pentaho.di.core.util.CollectionPredicates
- Version:
- $Revision
- Author:
- Thomas Hoedl(asc042)
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.commons.collections.Predicate
Empty array.static final org.apache.commons.collections.Predicate
Empty collection.static final org.apache.commons.collections.Predicate
Empty map.static final org.apache.commons.collections.Predicate
Not empty array.static final org.apache.commons.collections.Predicate
Not empty collection.static final org.apache.commons.collections.Predicate
Not empty map.static final org.apache.commons.collections.Predicate
Not null or empty array.static final org.apache.commons.collections.Predicate
Not null or empty collection.static final org.apache.commons.collections.Predicate
Not null or empty map.static final org.apache.commons.collections.Predicate
Null or empty array.static final org.apache.commons.collections.Predicate
Null or empty collection.static final org.apache.commons.collections.Predicate
Null or empty map. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isNotNullOrEmpty
(Object[] subject) static boolean
isNotNullOrEmpty
(Collection<?> subject) static boolean
isNotNullOrEmpty
(Map<?, ?> subject) static boolean
isNullOrEmpty
(Object[] subject) static boolean
isNullOrEmpty
(Collection<?> subject) static boolean
isNullOrEmpty
(Map<?, ?> subject)
-
Field Details
-
EMPTY_COLLECTION
public static final org.apache.commons.collections.Predicate EMPTY_COLLECTIONEmpty collection. -
NOT_EMPTY_COLLECTION
public static final org.apache.commons.collections.Predicate NOT_EMPTY_COLLECTIONNot empty collection. -
EMPTY_ARRAY
public static final org.apache.commons.collections.Predicate EMPTY_ARRAYEmpty array. -
NOT_EMPTY_ARRAY
public static final org.apache.commons.collections.Predicate NOT_EMPTY_ARRAYNot empty array. -
EMPTY_MAP
public static final org.apache.commons.collections.Predicate EMPTY_MAPEmpty map. -
NOT_EMPTY_MAP
public static final org.apache.commons.collections.Predicate NOT_EMPTY_MAPNot empty map. -
NOT_NULL_OR_EMPTY_COLLECTION
public static final org.apache.commons.collections.Predicate NOT_NULL_OR_EMPTY_COLLECTIONNot null or empty collection. -
NOT_NULL_OR_EMPTY_ARRAY
public static final org.apache.commons.collections.Predicate NOT_NULL_OR_EMPTY_ARRAYNot null or empty array. -
NOT_NULL_OR_EMPTY_MAP
public static final org.apache.commons.collections.Predicate NOT_NULL_OR_EMPTY_MAPNot null or empty map. -
NULL_OR_EMPTY_COLLECTION
public static final org.apache.commons.collections.Predicate NULL_OR_EMPTY_COLLECTIONNull or empty collection. -
NULL_OR_EMPTY_ARRAY
public static final org.apache.commons.collections.Predicate NULL_OR_EMPTY_ARRAYNull or empty array. -
NULL_OR_EMPTY_MAP
public static final org.apache.commons.collections.Predicate NULL_OR_EMPTY_MAPNull or empty map.
-
-
Method Details
-
isNullOrEmpty
- Parameters:
subject
- the subject.- Returns:
- true if null or empty.
-
isNotNullOrEmpty
- Parameters:
subject
- the subject.- Returns:
- true if not null or empty.
-
isNullOrEmpty
- Parameters:
subject
- the subject.- Returns:
- true if null or empty.
-
isNotNullOrEmpty
- Parameters:
subject
- the subject.- Returns:
- true if not null or empty.
-
isNullOrEmpty
- Parameters:
subject
- the subject.- Returns:
- true if null or empty.
-
isNotNullOrEmpty
- Parameters:
subject
- the subject.- Returns:
- true if not null or empty.
-