Package org.goplanit.graph.directed
Class DirectedEdgesImpl
- java.lang.Object
-
- org.goplanit.utils.wrapper.MapWrapperImpl<Long,V>
-
- org.goplanit.utils.wrapper.LongMapWrapperImpl<E>
-
- org.goplanit.graph.GraphEntitiesImpl<DirectedEdge>
-
- org.goplanit.graph.directed.DirectedEdgesImpl
-
- All Implemented Interfaces:
Cloneable
,Iterable<DirectedEdge>
,DirectedEdges
,GraphEntities<DirectedEdge>
,LongMapWrapper<DirectedEdge>
,MapWrapper<Long,DirectedEdge>
public class DirectedEdgesImpl extends GraphEntitiesImpl<DirectedEdge> implements DirectedEdges
Implementation of DirectedEdges interface- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description DirectedEdgesImpl(DirectedEdgesImpl directedEdgesImpl)
Copy constructorDirectedEdgesImpl(IdGroupingToken groupId)
ConstructorDirectedEdgesImpl(IdGroupingToken groupId, DirectedEdgeFactory directedEdgeFactory)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectedEdgesImpl
clone()
Each map wrapper should be cloneable where the contents are references of the original where possible but the underlying map itself is newly createdDirectedEdgeFactory
getFactory()
Collect the directed edge 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
-
DirectedEdgesImpl
public DirectedEdgesImpl(IdGroupingToken groupId)
Constructor- Parameters:
groupId
- to use for creating ids for instances
-
DirectedEdgesImpl
public DirectedEdgesImpl(IdGroupingToken groupId, DirectedEdgeFactory directedEdgeFactory)
Constructor- Parameters:
groupId
- to use for creating ids for instancesdirectedEdgeFactory
- the factory to use
-
DirectedEdgesImpl
public DirectedEdgesImpl(DirectedEdgesImpl directedEdgesImpl)
Copy constructor- Parameters:
directedEdgesImpl
- to copy
-
-
Method Detail
-
getFactory
public DirectedEdgeFactory getFactory()
Collect the directed edge factory to use for creating instances- Specified by:
getFactory
in interfaceDirectedEdges
- Specified by:
getFactory
in interfaceGraphEntities<DirectedEdge>
- Returns:
- directedEdgeFactory to create edges for this container
-
clone
public DirectedEdgesImpl 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<DirectedEdge>
- Specified by:
clone
in interfaceMapWrapper<Long,DirectedEdge>
- Specified by:
clone
in classGraphEntitiesImpl<DirectedEdge>
- Returns:
- copy
-
-