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 NodesdeepClone()Force clone implementationNodesdeepCloneWithMapping(BiConsumer<Node,Node> mapper)Deep clone implementation with mapping retained between original and copies createdNodeFactorygetFactory()Factory to create instance of graph entity (for this container class)NodesshallowClone()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:
getFactoryin interfaceGraphEntities<Node>- Specified by:
getFactoryin interfaceManagedIdEntities<Node>- Returns:
- entity factory
-
shallowClone
Nodes shallowClone()
shallow clone implementation- Specified by:
shallowClonein interfaceGraphEntities<Node>- Specified by:
shallowClonein interfaceManagedGraphEntities<Node>- Specified by:
shallowClonein interfaceManagedIdEntities<Node>- Specified by:
shallowClonein interfaceMapWrapper<Long,Node>- Returns:
- clone of entities
-
deepClone
Nodes deepClone()
Force clone implementation- Specified by:
deepClonein interfaceGraphEntities<Node>- Specified by:
deepClonein interfaceManagedGraphEntities<Node>- Specified by:
deepClonein 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:
deepCloneWithMappingin interfaceGraphEntities<Node>- Specified by:
deepCloneWithMappingin interfaceManagedGraphEntities<Node>- Specified by:
deepCloneWithMappingin 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
-
-