Class CollectionPredicates

    • Field Detail

      • EMPTY_COLLECTION

        public static final org.apache.commons.collections.Predicate EMPTY_COLLECTION
        Empty collection.
      • NOT_EMPTY_COLLECTION

        public static final org.apache.commons.collections.Predicate NOT_EMPTY_COLLECTION
        Not empty collection.
      • EMPTY_ARRAY

        public static final org.apache.commons.collections.Predicate EMPTY_ARRAY
        Empty array.
      • NOT_EMPTY_ARRAY

        public static final org.apache.commons.collections.Predicate NOT_EMPTY_ARRAY
        Not empty array.
      • EMPTY_MAP

        public static final org.apache.commons.collections.Predicate EMPTY_MAP
        Empty map.
      • NOT_EMPTY_MAP

        public static final org.apache.commons.collections.Predicate NOT_EMPTY_MAP
        Not empty map.
      • NOT_NULL_OR_EMPTY_COLLECTION

        public static final org.apache.commons.collections.Predicate NOT_NULL_OR_EMPTY_COLLECTION
        Not null or empty collection.
      • NOT_NULL_OR_EMPTY_ARRAY

        public static final org.apache.commons.collections.Predicate NOT_NULL_OR_EMPTY_ARRAY
        Not null or empty array.
      • NOT_NULL_OR_EMPTY_MAP

        public static final org.apache.commons.collections.Predicate NOT_NULL_OR_EMPTY_MAP
        Not null or empty map.
      • NULL_OR_EMPTY_COLLECTION

        public static final org.apache.commons.collections.Predicate NULL_OR_EMPTY_COLLECTION
        Null or empty collection.
      • NULL_OR_EMPTY_ARRAY

        public static final org.apache.commons.collections.Predicate NULL_OR_EMPTY_ARRAY
        Null or empty array.
      • NULL_OR_EMPTY_MAP

        public static final org.apache.commons.collections.Predicate NULL_OR_EMPTY_MAP
        Null or empty map.
    • Method Detail

      • isNullOrEmpty

        public static boolean isNullOrEmpty​(Collection<?> subject)
        Parameters:
        subject - the subject.
        Returns:
        true if null or empty.
      • isNotNullOrEmpty

        public static boolean isNotNullOrEmpty​(Collection<?> subject)
        Parameters:
        subject - the subject.
        Returns:
        true if not null or empty.
      • isNullOrEmpty

        public static boolean isNullOrEmpty​(Object[] subject)
        Parameters:
        subject - the subject.
        Returns:
        true if null or empty.
      • isNotNullOrEmpty

        public static boolean isNotNullOrEmpty​(Object[] subject)
        Parameters:
        subject - the subject.
        Returns:
        true if not null or empty.
      • isNullOrEmpty

        public static boolean isNullOrEmpty​(Map<?,​?> subject)
        Parameters:
        subject - the subject.
        Returns:
        true if null or empty.
      • isNotNullOrEmpty

        public static boolean isNotNullOrEmpty​(Map<?,​?> subject)
        Parameters:
        subject - the subject.
        Returns:
        true if not null or empty.