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 DirectedVerticesImplclone()Each map wrapper should be cloneable where the contents are references of the original where possible but the underlying map itself is newly createdDirectedVertexFactorygetFactory()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:
getFactoryin interfaceDirectedVertices- Specified by:
getFactoryin 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:
clonein interfaceDirectedVertices- Specified by:
clonein interfaceGraphEntities<DirectedVertex>- Specified by:
clonein interfaceMapWrapper<Long,DirectedVertex>- Specified by:
clonein classGraphEntitiesImpl<DirectedVertex>- Returns:
- copy
-
-