|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--harpoon.Util.Collections.Factories
Factories
consists exclusively of static methods that
operate on or return CollectionFactory
s.
Field Summary | |
static ListFactory |
arrayListFactory
Returns a ListFactory that generates
ArrayList s. |
static MapFactory |
hashMapFactory
A MapFactory that generates HashMap s. |
static SetFactory |
hashSetFactory
A SetFactory that generates HashSet s. |
static SetFactory |
linearSetFactory
A SetFactory that generates
LinearSet s backed by ArrayList s. |
static ListFactory |
linkedListFactory
A ListFactory that generates LinkedList s. |
static SetFactory |
treeSetFactory
A SetFactory that generates TreeSet s. |
Method Summary | |
static SetFactory |
mapSetFactory(MapFactory mf)
Returns a SetFactory that generates MapSet
views of maps generated by the given MapFactory . |
static SetFactory |
multiMapSetFactory(MultiMap.Factory mf)
Returns a SetFactory that generates
MultiMapSet views of MultiMap s
generated by the given MultiMapFactory . |
static CollectionFactory |
noNullCollectionFactory(CollectionFactory cf)
|
static CollectionFactory |
synchronizedCollectionFactory(CollectionFactory cf)
Returns a CollectionFactory that generates
synchronized (thread-safe) Collection s. |
static ListFactory |
synchronizedListFactory(ListFactory lf)
Returns a ListFactory that generates synchronized
(thread-safe) List s. |
static MapFactory |
synchronizedMapFactory(MapFactory mf)
Returns a MapFactory that generates synchronized
(thread-safe) Map s. |
static SetFactory |
synchronizedSetFactory(SetFactory sf)
Returns a SetFactory that generates synchronized
(thread-safe) Set s. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final MapFactory hashMapFactory
MapFactory
that generates HashMap
s.
public static final SetFactory hashSetFactory
SetFactory
that generates HashSet
s.
public static final SetFactory linearSetFactory
SetFactory
that generates
LinearSet
s backed by ArrayList
s.
public static final SetFactory treeSetFactory
SetFactory
that generates TreeSet
s.
public static final ListFactory linkedListFactory
ListFactory
that generates LinkedList
s.
public static ListFactory arrayListFactory
ListFactory
that generates
ArrayList
s.
Method Detail |
public static SetFactory mapSetFactory(MapFactory mf)
SetFactory
that generates MapSet
views of maps generated by the given MapFactory
. These
can be passed in as arguments to a GenericMultiMap
,
for example, to make a multimap of maps.
public static SetFactory multiMapSetFactory(MultiMap.Factory mf)
SetFactory
that generates
MultiMapSet
views of MultiMap
s
generated by the given MultiMapFactory
. These can be
passed in as arguments to a GenericMultiMap
, for
example, to make a multimap of multimaps.
public static CollectionFactory synchronizedCollectionFactory(CollectionFactory cf)
CollectionFactory
that generates
synchronized (thread-safe) Collection
s.
The Collection
s generated are backed by the
Collection
s generated by cf
.
Collections#synchronizedCollection
public static SetFactory synchronizedSetFactory(SetFactory sf)
SetFactory
that generates synchronized
(thread-safe) Set
s. The Set
s
generated are backed by the Set
s generated by
sf
.
Collections#synchronizedSet
public static ListFactory synchronizedListFactory(ListFactory lf)
ListFactory
that generates synchronized
(thread-safe) List
s. The List
s
generated are backed by the List
s generated by
lf
.
Collections#synchronizedList
public static MapFactory synchronizedMapFactory(MapFactory mf)
MapFactory
that generates synchronized
(thread-safe) Map
s. The Map
s
generated are backed by the Map
generated by
mf
.
Collections#synchronizedMap
public static CollectionFactory noNullCollectionFactory(CollectionFactory cf)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |