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