Class CollectionHelper

java.lang.Object
org.hibernate.validator.ap.internal.util.CollectionHelper

public class CollectionHelper extends Object
Provides some methods for simplified collection instantiation.
Author:
Gunnar Morling
  • Method Details

    • newHashMap

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

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

      public static <T> TreeSet<T> newTreeSet()
    • newArrayList

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

      @SafeVarargs public static <T> Set<T> asSet(T... ts)
    • asTreeSet

      @SafeVarargs public static <T> Set<T> asTreeSet(T... ts)