Java Collection Empty isNullOrEmpty(Collection values)

Here you can find the source of isNullOrEmpty(Collection values)

Description

is Null Or Empty

License

Open Source License

Declaration

public static boolean isNullOrEmpty(Collection<?> values) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Collection;

public class Main {
    public static boolean isNullOrEmpty(String val) {
        return val == null || val.trim().length() == 0;
    }//  w w w  .j  a  v a  2  s . c  o  m

    public static boolean isNullOrEmpty(Collection<?> values) {
        if (values == null || values.isEmpty()) {
            return true;
        }
        return false;
    }
}

Related

  1. isNullOrEmpty(Collection col)
  2. isNullOrEmpty(Collection collection)
  3. isNullOrEmpty(Collection list)
  4. isNullOrEmpty(Collection obj)
  5. isNullOrEmpty(Collection s)
  6. isNullOrEmpty(final Collection c)
  7. isNullOrEmpty(final Collection collection)
  8. isNullOrEmpty(final Collection value)
  9. isNullOrEmpty(final Collection collection)