|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hp.hpl.jena.util.CollectionFactory
public class CollectionFactory
CollectionFactory - a central place for allocating sets and maps, mostly so that it's easy to plug in new implementations (eg trove).
Constructor Summary | |
---|---|
CollectionFactory()
|
Method Summary | ||
---|---|---|
static
|
createHashedMap()
Answer a new Map which uses hashing for lookup. |
|
static
|
createHashedMap(int size)
Answer a new Map which uses hashing for lookup and has initial size size . |
|
static
|
createHashedMap(Map<K,V> toCopy)
Answer a new Map which uses hashing for lookup and is initialised to be a copy of toCopy . |
|
static
|
createHashedSet()
Answer a new Set which uses haashing for lookup. |
|
static
|
createHashedSet(Collection<T> toCopy)
Answer a new Set which uses hashing for lookup and is initialised as a copy of toCopy . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectionFactory()
Method Detail |
---|
public static <K,V> Map<K,V> createHashedMap()
public static <K,V> Map<K,V> createHashedMap(int size)
size
.
public static <K,V> Map<K,V> createHashedMap(Map<K,V> toCopy)
toCopy
.
public static <T> Set<T> createHashedSet()
public static <T> Set<T> createHashedSet(Collection<T> toCopy)
toCopy
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |