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 EdgesdeepClone()deep clone edgesEdgesdeepCloneWithMapping(BiConsumer<Edge,Edge> mapper)Deep clone implementation with mapping retained between original and copies createdEdgeFactorygetFactory()Collect the edge factory to use for creating instancesEdgesshallowClone()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:
getFactoryin interfaceGraphEntities<Edge>- Returns:
- edgeFactory to create edges for this container
-
shallowClone
Edges shallowClone()
shallow clone edges- Specified by:
shallowClonein interfaceGraphEntities<Edge>- Specified by:
shallowClonein interfaceMapWrapper<Long,Edge>- Returns:
- clone of entities
-
deepClone
Edges deepClone()
deep clone edges- Specified by:
deepClonein 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:
deepCloneWithMappingin 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
-
-