public interface NodeCollectionsProvider extends CollectionsProvider
CollectionsProvider
with support for creating Node
based collections.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
<E extends Node> Set<E> newNodeIdentitySet()
Node
s that uses reference-equality in place of object-equality when
comparing entries.<K extends Node,V> Map<K,V> newNodeIdentityMap()
<K extends Node,V> Map<K,V> newNodeIdentityMap(int expectedMaxSize)
<K extends Node,V> Map<K,V> newNodeIdentityMap(Map<K,V> initFrom)
Node
s that uses reference-equality in place of
object-equality when comparing keys. All Node
keys must be in the same graph.initFrom
- the returned map is populated with the entries in this map