Package org.goplanit.graph.directed
Class DirectedVerticesImpl
- java.lang.Object
-
- org.goplanit.utils.wrapper.MapWrapperImpl<Long,V>
-
- org.goplanit.utils.wrapper.LongMapWrapperImpl<E>
-
- org.goplanit.graph.GraphEntitiesImpl<DirectedVertex>
-
- org.goplanit.graph.directed.DirectedVerticesImpl
-
- All Implemented Interfaces:
Cloneable
,Iterable<DirectedVertex>
,DirectedVertices
,GraphEntities<DirectedVertex>
,LongMapWrapper<DirectedVertex>
,MapWrapper<Long,DirectedVertex>
public class DirectedVerticesImpl extends GraphEntitiesImpl<DirectedVertex> implements DirectedVertices
DirectedVertices implementation container and factory access- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description DirectedVerticesImpl(DirectedVerticesImpl verticesImpl)
Copy constructorDirectedVerticesImpl(IdGroupingToken groupId)
ConstructorDirectedVerticesImpl(IdGroupingToken groupId, DirectedVertexFactory directedVertexFactory)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectedVerticesImpl
clone()
Each map wrapper should be cloneable where the contents are references of the original where possible but the underlying map itself is newly createdDirectedVertexFactory
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
-
DirectedVerticesImpl
public DirectedVerticesImpl(IdGroupingToken groupId)
Constructor- Parameters:
groupId
- to use for creating ids for instances
-
DirectedVerticesImpl
public DirectedVerticesImpl(IdGroupingToken groupId, DirectedVertexFactory directedVertexFactory)
Constructor- Parameters:
groupId
- to usedirectedVertexFactory
- to use
-
DirectedVerticesImpl
public DirectedVerticesImpl(DirectedVerticesImpl verticesImpl)
Copy constructor- Parameters:
verticesImpl
- to copy
-
-
Method Detail
-
getFactory
public DirectedVertexFactory getFactory()
Collect the vertex factory to use for creating instances- Specified by:
getFactory
in interfaceDirectedVertices
- Specified by:
getFactory
in interfaceGraphEntities<DirectedVertex>
- Returns:
- vertexFactory to create edges for this container
-
clone
public DirectedVerticesImpl 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 interfaceDirectedVertices
- Specified by:
clone
in interfaceGraphEntities<DirectedVertex>
- Specified by:
clone
in interfaceMapWrapper<Long,DirectedVertex>
- Specified by:
clone
in classGraphEntitiesImpl<DirectedVertex>
- Returns:
- copy
-
-