public final class IndirectCollectionsProvider extends java.lang.Object implements IndirectCollectionsFactory.IndirectCollectionsProvider
IndirectCollection
s.IndirectCollection
,
IndirectCollectionsFactory
,
IndirectCollectionsFactory.IndirectCollectionsProvider
Constructor and Description |
---|
IndirectCollectionsProvider() |
Modifier and Type | Method and Description |
---|---|
<E> IndirectList<E> |
createIndirectList(java.util.Collection<? extends E> collection)
Constructs an
IndirectList containing the elements of the specified
collection, in the order they are returned by the collection's iterator. |
<E> IndirectList<E> |
createIndirectList(int initialCapacity,
int capacityIncrement)
Construct an empty
IndirectList with the specified initial capacity
and capacity increment. |
<K,V> IndirectMap<K,V> |
createIndirectMap(int initialCapacity,
float loadFactor)
Construct a new, empty
IndirectMap with the specified initial
capacity and the specified load factor. |
<K,V> IndirectMap<K,V> |
createIndirectMap(java.util.Map<? extends K,? extends V> map)
Construct a new
IndirectMap with the same mappings as the given Map. |
<E> IndirectSet<E> |
createIndirectSet(java.util.Collection<? extends E> collection)
Constructs an
IndirectSet containing the elements of the specified
collection. |
<E> IndirectSet<E> |
createIndirectSet(int initialCapacity,
float loadFactor)
Construct an empty
IndirectSet with the specified initial capacity
and the specified load factor. |
java.lang.Class |
getListClass()
Class implementing
IndirectList . |
java.lang.Class |
getMapClass()
Class implementing
IndirectMap . |
java.lang.Class |
getSetClass()
Class implementing
IndirectSet . |
public java.lang.Class getListClass()
IndirectCollectionsFactory.IndirectCollectionsProvider
IndirectList
.getListClass
in interface IndirectCollectionsFactory.IndirectCollectionsProvider
IndirectList
public <E> IndirectList<E> createIndirectList(int initialCapacity, int capacityIncrement)
IndirectCollectionsFactory.IndirectCollectionsProvider
IndirectList
with the specified initial capacity
and capacity increment.createIndirectList
in interface IndirectCollectionsFactory.IndirectCollectionsProvider
E
- the class of the objects in the listinitialCapacity
- the initial capacity of the listcapacityIncrement
- the amount by which the capacity is increased
when the list overflowsIndirectList
with the specified initial capacity
and capacity incrementpublic <E> IndirectList<E> createIndirectList(java.util.Collection<? extends E> collection)
IndirectCollectionsFactory.IndirectCollectionsProvider
IndirectList
containing the elements of the specified
collection, in the order they are returned by the collection's iterator.createIndirectList
in interface IndirectCollectionsFactory.IndirectCollectionsProvider
E
- the class of the objects in the listcollection
- a collection containing the elements to construct
the IndirectList
withIndirectList
containing the elements of the specified collectionpublic java.lang.Class getSetClass()
IndirectCollectionsFactory.IndirectCollectionsProvider
IndirectSet
.getSetClass
in interface IndirectCollectionsFactory.IndirectCollectionsProvider
IndirectSet
public <E> IndirectSet<E> createIndirectSet(int initialCapacity, float loadFactor)
IndirectCollectionsFactory.IndirectCollectionsProvider
IndirectSet
with the specified initial capacity
and the specified load factor.createIndirectSet
in interface IndirectCollectionsFactory.IndirectCollectionsProvider
initialCapacity
- the initial capacity of the setloadFactor
- the load factor of the setIndirectSet
with the specified initial capacity
and the specified load factorpublic <E> IndirectSet<E> createIndirectSet(java.util.Collection<? extends E> collection)
IndirectCollectionsFactory.IndirectCollectionsProvider
IndirectSet
containing the elements of the specified
collection.createIndirectSet
in interface IndirectCollectionsFactory.IndirectCollectionsProvider
collection
- a collection containing the elements to construct
the IndirectSet
withIndirectSet
containing the elements of the specified collectionpublic java.lang.Class getMapClass()
IndirectCollectionsFactory.IndirectCollectionsProvider
IndirectMap
.getMapClass
in interface IndirectCollectionsFactory.IndirectCollectionsProvider
IndirectMap
public <K,V> IndirectMap<K,V> createIndirectMap(int initialCapacity, float loadFactor)
IndirectCollectionsFactory.IndirectCollectionsProvider
IndirectMap
with the specified initial
capacity and the specified load factor.createIndirectMap
in interface IndirectCollectionsFactory.IndirectCollectionsProvider
initialCapacity
- the initial capacity of the IndirectMap
loadFactor
- a number between 0.0 and 1.0IndirectMap
with the specified initial
capacity and the specified load factorpublic <K,V> IndirectMap<K,V> createIndirectMap(java.util.Map<? extends K,? extends V> map)
IndirectCollectionsFactory.IndirectCollectionsProvider
IndirectMap
with the same mappings as the given Map.
The IndirectMap
is created with a capacity of twice the number of entries
in the given Map or 11 (whichever is greater), and a default load factor, which is 0.75.createIndirectMap
in interface IndirectCollectionsFactory.IndirectCollectionsProvider
map
- the map whose mappings are to be placed into created IndirectMap
IndirectMap
with the same mappings as the given MapEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference