Package org.goplanit.utils.graph
Interface Edges
-
- All Superinterfaces:
Cloneable
,GraphEntities<Edge>
,Iterable<Edge>
,LongMapWrapper<Edge>
,MapWrapper<Long,Edge>
- All Known Implementing Classes:
EdgesImpl
public interface Edges extends GraphEntities<Edge>
Container and factory class for edges in a graph, also to be used to create and register edges of any (derived) type- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Edges
deepClone()
deep clone edgesEdges
deepCloneWithMapping(BiConsumer<Edge,Edge> mapper)
Deep clone implementation with mapping retained between original and copies createdEdgeFactory
getFactory()
Collect the edge factory to use for creating instancesEdges
shallowClone()
shallow clone edges-
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
containsKey, get, remove
-
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
EdgeFactory getFactory()
Collect the edge factory to use for creating instances- Specified by:
getFactory
in interfaceGraphEntities<Edge>
- Returns:
- edgeFactory to create edges for this container
-
shallowClone
Edges shallowClone()
shallow clone edges- Specified by:
shallowClone
in interfaceGraphEntities<Edge>
- Specified by:
shallowClone
in interfaceMapWrapper<Long,Edge>
- Returns:
- clone of entities
-
deepClone
Edges deepClone()
deep clone edges- Specified by:
deepClone
in interfaceGraphEntities<Edge>
- Returns:
- deep copy of entities
-
deepCloneWithMapping
Edges deepCloneWithMapping(BiConsumer<Edge,Edge> mapper)
Deep clone implementation with mapping retained between original and copies created- Specified by:
deepCloneWithMapping
in interfaceGraphEntities<Edge>
- 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
-
-