Class CollectionUtils


  • public final class CollectionUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.lang.Iterable<T> asIterable​(java.util.Iterator<T> iterator)  
      static boolean hasElements​(java.util.Collection<?> c)  
      static boolean hasElements​(java.util.Map<?,​?> c)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • hasElements

        public static boolean hasElements​(java.util.Collection<?> c)
      • hasElements

        public static boolean hasElements​(java.util.Map<?,​?> c)
      • asIterable

        public static <T> java.lang.Iterable<T> asIterable​(java.util.Iterator<T> iterator)