org.hibernate.search.util.impl
Class CollectionHelper

java.lang.Object
  extended by org.hibernate.search.util.impl.CollectionHelper

public class CollectionHelper
extends Object

Provides some methods for simplified collection instantiation.

Author:
Gunnar Morling, Hardy Ferentschik

Constructor Summary
CollectionHelper()
           
 
Method Summary
static
<T> Set<T>
asSet(T... ts)
           
static
<T> ArrayList<T>
newArrayList()
           
static
<K,V> HashMap<K,V>
newHashMap()
           
static
<T> HashSet<T>
newHashSet()
           
static
<K,V> SortedMap<K,V>
newSortedMap()
           
 
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()

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)


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved