Java Collection Empty isEmpty(final Collection values)

Here you can find the source of isEmpty(final Collection values)

Description

is Empty

License

Apache License

Declaration

public static boolean isEmpty(final Collection values) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Collection;

import java.util.Map;

public class Main {
    public static boolean isEmpty(final String value) {
        if (value == null) {
            return true;
        } else {//from w  w  w.j  a va2 s.  c  o  m
            return value.trim().isEmpty();
        }
    }

    public static boolean isEmpty(final Collection values) {
        return (values == null) || values.isEmpty();
    }

    public static boolean isEmpty(final Map values) {
        return (values == null) || values.isEmpty();
    }
}

Related

  1. isEmpty(Collection collection)
  2. isEmpty(Collection collection)
  3. isEmpty(Collection collection, String messgae)
  4. isEmpty(Collection items)
  5. isEmpty(Collection c)
  6. isEmpty(final Collection coll)
  7. isEmpty(final Collection collection)
  8. isEmpty(final Collection collection)
  9. isEmpty(final Collection collection)