Class CollectionUtils


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <K,​V>
      java.util.concurrent.ConcurrentHashMap<K,​V>
      newConcurrentHashMap​(int expectedSize)  
      static <K,​V>
      java.util.HashMap<K,​V>
      newHashMap​(int expectedSize)  
      static <T> java.util.HashSet<T> newHashSet()  
      static <T> java.util.HashSet<T> newHashSet​(int expectedSize)  
      static <K,​V>
      java.util.LinkedHashMap<K,​V>
      newLinkedHashMap​(int expectedSize)  
      static <T> java.util.LinkedHashSet<T> newLinkedHashSet​(int expectedSize)  
      • Methods inherited from class java.lang.Object

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

      • newHashSet

        public static <T> java.util.HashSet<T> newHashSet()
      • newHashSet

        public static <T> java.util.HashSet<T> newHashSet​(int expectedSize)
      • newLinkedHashSet

        public static <T> java.util.LinkedHashSet<T> newLinkedHashSet​(int expectedSize)
      • newHashMap

        public static <K,​V> java.util.HashMap<K,​V> newHashMap​(int expectedSize)
      • newLinkedHashMap

        public static <K,​V> java.util.LinkedHashMap<K,​V> newLinkedHashMap​(int expectedSize)
      • newConcurrentHashMap

        public static <K,​V> java.util.concurrent.ConcurrentHashMap<K,​V> newConcurrentHashMap​(int expectedSize)