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