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
FieldsModifier and TypeFieldDescriptionstatic final org.apache.commons.collections.PredicateEmpty array.static final org.apache.commons.collections.PredicateEmpty collection.static final org.apache.commons.collections.PredicateEmpty map.static final org.apache.commons.collections.PredicateNot empty array.static final org.apache.commons.collections.PredicateNot empty collection.static final org.apache.commons.collections.PredicateNot empty map.static final org.apache.commons.collections.PredicateNot null or empty array.static final org.apache.commons.collections.PredicateNot null or empty collection.static final org.apache.commons.collections.PredicateNot null or empty map.static final org.apache.commons.collections.PredicateNull or empty array.static final org.apache.commons.collections.PredicateNull or empty collection.static final org.apache.commons.collections.PredicateNull or empty map. - 
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisNotNullOrEmpty(Object[] subject) static booleanisNotNullOrEmpty(Collection<?> subject) static booleanisNotNullOrEmpty(Map<?, ?> subject) static booleanisNullOrEmpty(Object[] subject) static booleanisNullOrEmpty(Collection<?> subject) static booleanisNullOrEmpty(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.
 
 
 -