org.jboss.util.collection
Class CollectionsFactory

java.lang.Object
  extended by org.jboss.util.collection.CollectionsFactory

public class CollectionsFactory
extends Object

Collections factory.

Version:
$Revision: 2516 $
Author:
Adrian Brock

Constructor Summary
CollectionsFactory()
           
 
Method Summary
static
<K,V> Map<K,V>
createConcurrentReaderMap()
          Defines the concurrent map implementation
static
<T> List<T>
createCopyOnWriteList()
          Defines the concurrent list implementation
static
<T> Set<T>
createCopyOnWriteSet()
          Defines the concurrent set implementation
static
<T> List<T>
createLazyList()
          Defines the list implementation
static
<K,V> Map<K,V>
createLazyMap()
          Defines the map implementation
static
<T> Set<T>
createLazySet()
          Defines the set implementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionsFactory

public CollectionsFactory()
Method Detail

createLazyMap

public static final <K,V> Map<K,V> createLazyMap()
Defines the map implementation

Type Parameters:
K - the key type
V - the value type
Returns:
the map

createLazyList

public static final <T> List<T> createLazyList()
Defines the list implementation

Type Parameters:
T - the type
Returns:
the list

createLazySet

public static final <T> Set<T> createLazySet()
Defines the set implementation

Type Parameters:
T - the type
Returns:
the set

createConcurrentReaderMap

public static final <K,V> Map<K,V> createConcurrentReaderMap()
Defines the concurrent map implementation

Type Parameters:
K - the key type
V - the value type
Returns:
the map

createCopyOnWriteList

public static final <T> List<T> createCopyOnWriteList()
Defines the concurrent list implementation

Type Parameters:
T - the type
Returns:
the list

createCopyOnWriteSet

public static final <T> Set<T> createCopyOnWriteSet()
Defines the concurrent set implementation

Type Parameters:
T - the type
Returns:
the set


Copyright © 2008 JBoss Inc.. All Rights Reserved.