Package org.goplanit.utils.graph
Interface ConjugateVertices
-
- All Superinterfaces:
Cloneable
,GraphEntities<ConjugateVertex>
,Iterable<ConjugateVertex>
,LongMapWrapper<ConjugateVertex>
,MapWrapper<Long,ConjugateVertex>
public interface ConjugateVertices extends GraphEntities<ConjugateVertex>
Container class for conjugate vertices and creating instances within this container via factory.- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConjugateVertices
deepClone()
deep clone conjugate verticesConjugateVertices
deepCloneWithMapping(BiConsumer<ConjugateVertex,ConjugateVertex> mapper)
Deep clone implementation with mapping retained between original and copies createdConjugateVertexFactory
getFactory()
Collect the conjugate vertex factory to use for creating instancesConjugateVertices
shallowClone()
shallow clone conjugate vertices-
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
ConjugateVertexFactory getFactory()
Collect the conjugate vertex factory to use for creating instances- Specified by:
getFactory
in interfaceGraphEntities<ConjugateVertex>
- Returns:
- conjugate vertexFactory to create conjugate edges for this container
-
shallowClone
ConjugateVertices shallowClone()
shallow clone conjugate vertices- Specified by:
shallowClone
in interfaceGraphEntities<ConjugateVertex>
- Specified by:
shallowClone
in interfaceMapWrapper<Long,ConjugateVertex>
- Returns:
- clone of entities
-
deepClone
ConjugateVertices deepClone()
deep clone conjugate vertices- Specified by:
deepClone
in interfaceGraphEntities<ConjugateVertex>
- Returns:
- deep copy of entities
-
deepCloneWithMapping
ConjugateVertices deepCloneWithMapping(BiConsumer<ConjugateVertex,ConjugateVertex> mapper)
Deep clone implementation with mapping retained between original and copies created- Specified by:
deepCloneWithMapping
in interfaceGraphEntities<ConjugateVertex>
- 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
-
-