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