Java Collection Search hasElements(Collection c)

Here you can find the source of hasElements(Collection c)

Description

has Elements

License

Apache License

Declaration

public static boolean hasElements(Collection<?> c) 

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 hasElements(Collection<?> c) {
        return c != null && !c.isEmpty();
    }//  ww  w .ja v  a 2s.  co m

    public static boolean hasElements(Map<?, ?> c) {
        return c != null && !c.isEmpty();
    }
}

Related

  1. getSingleElement(Collection collection)
  2. getSingleElement(Collection collection)
  3. getSingleItem(Collection values)
  4. getSingleValue(Iterable collection)
  5. hasElements(Collection c)
  6. hasElements(Collection collection)
  7. hasElements(Collection t)
  8. hashCapacityFor(Collection collection)
  9. hasLength(final Collection collection)