Interface Nodes
-
- All Superinterfaces:
Cloneable
,GraphEntities<Node>
,Iterable<Node>
,LongMapWrapper<Node>
,ManagedGraphEntities<Node>
,ManagedIdEntities<Node>
,MapWrapper<Long,Node>
- All Known Implementing Classes:
NodesImpl
public interface Nodes extends ManagedGraphEntities<Node>
Container class for primary managed nodes container and access to factory to create and register them on this instance- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Nodes
deepClone()
Force clone implementationNodes
deepCloneWithMapping(BiConsumer<Node,Node> mapper)
Deep clone implementation with mapping retained between original and copies createdNodeFactory
getFactory()
Factory to create instance of graph entity (for this container class)Nodes
shallowClone()
shallow clone implementation-
Methods inherited from interface org.goplanit.utils.graph.GraphEntities
forEachMatchingIdIn, getByExternalId, getByXmlId
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.goplanit.utils.wrapper.LongMapWrapper
get, remove
-
Methods inherited from interface org.goplanit.utils.id.ManagedIdEntities
containsKey, getManagedIdClass, groupBy, recreateIds, recreateIds, reset, streamSortedBy
-
Methods inherited from interface org.goplanit.utils.wrapper.MapWrapper
addAll, clear, containsValue, firstMatch, forEachIn, get, getFirst, getKeyByValue, isEmpty, register, remove, removeAll, removeIf, size, stream, streamSorted, toCollection, toMap, valuesAsNewSet
-
-
-
-
Method Detail
-
getFactory
NodeFactory getFactory()
Factory to create instance of graph entity (for this container class)- Specified by:
getFactory
in interfaceGraphEntities<Node>
- Specified by:
getFactory
in interfaceManagedIdEntities<Node>
- Returns:
- entity factory
-
shallowClone
Nodes shallowClone()
shallow clone implementation- Specified by:
shallowClone
in interfaceGraphEntities<Node>
- Specified by:
shallowClone
in interfaceManagedGraphEntities<Node>
- Specified by:
shallowClone
in interfaceManagedIdEntities<Node>
- Specified by:
shallowClone
in interfaceMapWrapper<Long,Node>
- Returns:
- clone of entities
-
deepClone
Nodes deepClone()
Force clone implementation- Specified by:
deepClone
in interfaceGraphEntities<Node>
- Specified by:
deepClone
in interfaceManagedGraphEntities<Node>
- Specified by:
deepClone
in interfaceManagedIdEntities<Node>
- Returns:
- clone of entities
-
deepCloneWithMapping
Nodes deepCloneWithMapping(BiConsumer<Node,Node> mapper)
Deep clone implementation with mapping retained between original and copies created- Specified by:
deepCloneWithMapping
in interfaceGraphEntities<Node>
- Specified by:
deepCloneWithMapping
in interfaceManagedGraphEntities<Node>
- Specified by:
deepCloneWithMapping
in interfaceManagedIdEntities<Node>
- Parameters:
mapper
- that is applied to each deep copy entity mapping pair of origin and copy- Returns:
- pair with deep copy of entities and mapping from original entities to deep copies of these entities
-
-