org.hibernate.validator.ap.util

## Class CollectionHelper

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

-     public class CollectionHelper
      extends Object

  Provides some methods for simplified collection instantiation.
  Author:
    Gunnar Morling

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CollectionHelper()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T> Set<T>` | `asSet(T... ts)`
    `static <T> ArrayList<T>` | `newArrayList()`
    `static <K,V> HashMap<K,V>` | `newHashMap()`
    `static <T> HashSet<T>` | `newHashSet()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CollectionHelper

          public CollectionHelper()

  - ### Method Detail

    - #### newHashMap

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

    - #### newHashSet

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

    - #### newArrayList

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

    - #### asSet

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

Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved