public class DefaultNodeCollectionsProvider extends DefaultCollectionsProvider implements NodeCollectionsProvider
NodeCollectionsProvider
that creates standard JDK collection
class objects.Constructor and Description |
---|
DefaultNodeCollectionsProvider() |
Modifier and Type | Method and Description |
---|---|
<K extends Node,V> |
newNodeIdentityMap()
Creates a map whose keys are
Node s that uses reference-equality in place of
object-equality when comparing keys. |
<K extends Node,V> |
newNodeIdentityMap(int expectedMaxSize)
Creates a map whose keys are
Node s that uses reference-equality in place of
object-equality when comparing keys. |
<K extends Node,V> |
newNodeIdentityMap(Map<K,V> initFrom)
Creates a map whose keys are
Node s that uses reference-equality in place of
object-equality when comparing keys. |
<E extends Node> |
newNodeIdentitySet()
Creates a set of
Node s that uses reference-equality in place of object-equality when
comparing entries. |
newIdentityMap, newIdentityMap, newIdentityMap, newIdentitySet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newIdentityMap, newIdentityMap, newIdentityMap, newIdentitySet
public DefaultNodeCollectionsProvider()
public <E extends Node> Set<E> newNodeIdentitySet()
NodeCollectionsProvider
Node
s that uses reference-equality in place of object-equality when
comparing entries.newNodeIdentitySet
in interface NodeCollectionsProvider
public <K extends Node,V> Map<K,V> newNodeIdentityMap()
NodeCollectionsProvider
Node
s that uses reference-equality in place of
object-equality when comparing keys. All Node
keys must be in the same graph.newNodeIdentityMap
in interface NodeCollectionsProvider
public <K extends Node,V> Map<K,V> newNodeIdentityMap(int expectedMaxSize)
NodeCollectionsProvider
Node
s that uses reference-equality in place of
object-equality when comparing keys. All Node
keys must be in the same graph.newNodeIdentityMap
in interface NodeCollectionsProvider
public <K extends Node,V> Map<K,V> newNodeIdentityMap(Map<K,V> initFrom)
NodeCollectionsProvider
Node
s that uses reference-equality in place of
object-equality when comparing keys. All Node
keys must be in the same graph.newNodeIdentityMap
in interface NodeCollectionsProvider
initFrom
- the returned map is populated with the entries in this map