Package org.goplanit.graph
Class VerticesImpl
- java.lang.Object
-
- org.goplanit.utils.wrapper.MapWrapperImpl<Long,V>
-
- org.goplanit.utils.wrapper.LongMapWrapperImpl<E>
-
- org.goplanit.graph.GraphEntitiesImpl<Vertex>
-
- org.goplanit.graph.VerticesImpl
-
- All Implemented Interfaces:
Cloneable
,Iterable<Vertex>
,GraphEntities<Vertex>
,Vertices
,LongMapWrapper<Vertex>
,MapWrapper<Long,Vertex>
public class VerticesImpl extends GraphEntitiesImpl<Vertex> implements Vertices
Vertices implementation container and factory access- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description VerticesImpl(VerticesImpl verticesImpl)
Copy constructorVerticesImpl(IdGroupingToken groupId)
ConstructorVerticesImpl(IdGroupingToken groupId, VertexFactory vertexFactory)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VerticesImpl
clone()
Each map wrapper should be cloneable where the contents are references of the original where possible but the underlying map itself is newly createdVertexFactory
getFactory()
Collect the vertex factory to use for creating instances-
Methods inherited from class org.goplanit.utils.wrapper.LongMapWrapperImpl
containsKey, get, remove
-
Methods inherited from class org.goplanit.utils.wrapper.MapWrapperImpl
clear, contains, createEmptyInstance, findFirst, get, getKeyByValue, getMap, getValueToKey, isEmpty, iterator, register, remove, setMap, size, toCollection, valuesAsNewSet
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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, contains, findFirst, forEachIn, get, getFirst, getKeyByValue, isEmpty, register, remove, size, toCollection, valuesAsNewSet
-
-
-
-
Constructor Detail
-
VerticesImpl
public VerticesImpl(IdGroupingToken groupId)
Constructor- Parameters:
groupId
- to use for creating ids for instances
-
VerticesImpl
public VerticesImpl(IdGroupingToken groupId, VertexFactory vertexFactory)
Constructor- Parameters:
groupId
- to usevertexFactory
- to use
-
VerticesImpl
public VerticesImpl(VerticesImpl verticesImpl)
Copy constructor- Parameters:
verticesImpl
- to copy
-
-
Method Detail
-
getFactory
public VertexFactory getFactory()
Collect the vertex factory to use for creating instances- Specified by:
getFactory
in interfaceGraphEntities<Vertex>
- Specified by:
getFactory
in interfaceVertices
- Returns:
- vertexFactory to create edges for this container
-
clone
public VerticesImpl clone()
Each map wrapper should be cloneable where the contents are references of the original where possible but the underlying map itself is newly created- Specified by:
clone
in interfaceGraphEntities<Vertex>
- Specified by:
clone
in interfaceMapWrapper<Long,Vertex>
- Specified by:
clone
in interfaceVertices
- Specified by:
clone
in classGraphEntitiesImpl<Vertex>
- Returns:
- copy
-
-