Java Collection Search hasElements(Collection t)

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

Description

has Elements

License

Open Source License

Declaration

public static <T> boolean hasElements(Collection<T> t) 

Method Source Code

//package com.java2s;
// The MIT License (MIT)

import java.util.Collection;

public class Main {
    public static <T> boolean hasElements(Collection<T> t) {
        return (t != null) && (t.size() > 0);
    }/*from   w w  w  .  ja va2s  .co m*/
}

Related

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