Class CollectionHelper

java.lang.Object
org.hibernate.search.util.CollectionHelper

public class CollectionHelper extends Object
Provides some methods for simplified collection instantiation.
  • Constructor Details

    • CollectionHelper

      public CollectionHelper()
  • Method Details

    • newHashMap

      public static <K, V> HashMap<K,V> newHashMap()
    • newSortedMap

      public static <K, V> SortedMap<K,V> newSortedMap()
    • newHashSet

      public static <T> HashSet<T> newHashSet()
    • newArrayList

      public static <T> ArrayList<T> newArrayList()
    • asSet

      public static <T> Set<T> asSet(T... ts)