net.cscott.jutil
Class Factories
public final
class
Factories
extends Object
Factories consists exclusively of static methods that
operate on or return
CollectionFactorys.
Version: $Id: Factories.java,v 1.8 2006-10-30 19:58:05 cananian Exp $
Author: Felix S. Klock II
Method Summary |
static <V> ListFactory<V> | arrayListFactory() |
static <K extends Enum<K>,V> MapFactory<K,V> | enumMapFactory(Class<K> enumClass) |
static <V extends Enum<V>> SetFactory<V> | enumSetFactory(Class<V> enumClass) |
static <K,V> MapFactory<K,V> | hashMapFactory() |
static <V> SetFactory<V> | hashSetFactory() |
static <V> SetFactory<V> | linearSetFactory() |
static <K,V> MapFactory<K,V> | linkedHashMapFactory() |
static <V> SetFactory<V> | linkedHashSetFactory() |
static <V> ListFactory<V> | linkedListFactory() |
static <K,V> SetFactory<Entry<K,V>> | mapSetFactory(MapFactory<K,V> mf) |
static <K,V> SetFactory<Entry<K,V>> | multiMapSetFactory(MultiMapFactory<K,V> mf) |
static <V> CollectionFactory<V> | noNullCollectionFactory(CollectionFactory<V> cf) |
static <V> CollectionFactory<V> | synchronizedCollectionFactory(CollectionFactory<V> cf) |
static <V> ListFactory<V> | synchronizedListFactory(ListFactory<V> lf) Returns a ListFactory that generates synchronized
(thread-safe) Lists. |
static <K,V> MapFactory<K,V> | synchronizedMapFactory(MapFactory<K,V> mf) Returns a MapFactory that generates synchronized
(thread-safe) Maps. |
static <V> SetFactory<V> | synchronizedSetFactory(SetFactory<V> sf) Returns a SetFactory that generates synchronized
(thread-safe) Sets. |
static <V> SetFactory<V> | treeSetFactory() |
static <V> SetFactory<V> | workSetFactory() |
public static final
MapFactory linkedHashMapFactory
public static final
SetFactory linkedHashSetFactory
public static final <
K extends Enum<
K>,
V>
MapFactory<
K,
V> enumMapFactory(Class<
K> enumClass)
public static final <
V extends Enum<
V>>
SetFactory<
V> enumSetFactory(Class<
V> enumClass)
public static final <
V>
SetFactory<
V> linkedHashSetFactory()
Returns a
CollectionFactory that generates
synchronized (thread-safe) Collections.
The Collections generated are backed by the
Collections generated by
cf
.
See Also: Collections#synchronizedCollection
Returns a
ListFactory that generates synchronized
(thread-safe) Lists. The Lists
generated are backed by the Lists generated by
lf
.
See Also: Collections#synchronizedList
Returns a
MapFactory that generates synchronized
(thread-safe) Maps. The Maps
generated are backed by the Map generated by
mf
.
See Also: Collections#synchronizedMap
Returns a
SetFactory that generates synchronized
(thread-safe) Sets. The Sets
generated are backed by the Sets generated by
sf
.
See Also: Collections#synchronizedSet
Copyright (c) 2006 C. Scott Ananian