java.lang.Object
org.apache.jena.util.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> Map<K, V> Answer a new Map which uses hashing for lookup.static <K,
V> Map<K, V> createHashedMap
(int size) Answer a new Map which uses hashing for lookup and has initial sizesize
.static <K,
V> Map<K, V> createHashedMap
(Map<K, V> toCopy) Answer a new Map which uses hashing for lookup and is initialised to be a copy oftoCopy
.static <T> Set<T>
Answer a new Set which uses haashing for lookup.static <T> Set<T>
createHashedSet
(Collection<T> toCopy) Answer a new Set which uses hashing for lookup and is initialised as a copy oftoCopy
.
-
Constructor Details
-
CollectionFactory
public CollectionFactory()
-
-
Method Details
-
createHashedMap
Answer a new Map which uses hashing for lookup. -
createHashedMap
Answer a new Map which uses hashing for lookup and has initial sizesize
. -
createHashedMap
Answer a new Map which uses hashing for lookup and is initialised to be a copy oftoCopy
. -
createHashedSet
Answer a new Set which uses haashing for lookup. -
createHashedSet
Answer a new Set which uses hashing for lookup and is initialised as a copy oftoCopy
.
-