public final class IndirectCollectionsProvider extends java.lang.Object implements IndirectCollectionsFactory.IndirectCollectionsProvider
IndirectCollections.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.IndirectCollectionsProviderIndirectList.getListClass in interface IndirectCollectionsFactory.IndirectCollectionsProviderIndirectListpublic <E> IndirectList<E> createIndirectList(int initialCapacity, int capacityIncrement)
IndirectCollectionsFactory.IndirectCollectionsProviderIndirectList with the specified initial capacity
and capacity increment.createIndirectList in interface IndirectCollectionsFactory.IndirectCollectionsProviderE - 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.IndirectCollectionsProviderIndirectList containing the elements of the specified
collection, in the order they are returned by the collection's iterator.createIndirectList in interface IndirectCollectionsFactory.IndirectCollectionsProviderE - 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.IndirectCollectionsProviderIndirectSet.getSetClass in interface IndirectCollectionsFactory.IndirectCollectionsProviderIndirectSetpublic <E> IndirectSet<E> createIndirectSet(int initialCapacity, float loadFactor)
IndirectCollectionsFactory.IndirectCollectionsProviderIndirectSet with the specified initial capacity
and the specified load factor.createIndirectSet in interface IndirectCollectionsFactory.IndirectCollectionsProviderinitialCapacity - 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.IndirectCollectionsProviderIndirectSet containing the elements of the specified
collection.createIndirectSet in interface IndirectCollectionsFactory.IndirectCollectionsProvidercollection - a collection containing the elements to construct
the IndirectSet withIndirectSet containing the elements of the specified collectionpublic java.lang.Class getMapClass()
IndirectCollectionsFactory.IndirectCollectionsProviderIndirectMap.getMapClass in interface IndirectCollectionsFactory.IndirectCollectionsProviderIndirectMappublic <K,V> IndirectMap<K,V> createIndirectMap(int initialCapacity, float loadFactor)
IndirectCollectionsFactory.IndirectCollectionsProviderIndirectMap with the specified initial
capacity and the specified load factor.createIndirectMap in interface IndirectCollectionsFactory.IndirectCollectionsProviderinitialCapacity - the initial capacity of the IndirectMaploadFactor - 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.IndirectCollectionsProviderIndirectMap 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.IndirectCollectionsProvidermap - the map whose mappings are to be placed into created IndirectMapIndirectMap with the same mappings as the given MapEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference