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