Package org.goplanit.path
Class DirectedPathsImpl
- java.lang.Object
-
- org.goplanit.utils.wrapper.MapWrapperImpl<Long,V>
-
- org.goplanit.utils.wrapper.LongMapWrapperImpl<E>
-
- org.goplanit.utils.id.ManagedIdEntitiesImpl<DirectedPath>
-
- org.goplanit.path.DirectedPathsImpl
-
- All Implemented Interfaces:
Cloneable
,Iterable<DirectedPath>
,ManagedIdEntities<DirectedPath>
,DirectedPaths
,LongMapWrapper<DirectedPath>
,MapWrapper<Long,DirectedPath>
public class DirectedPathsImpl extends ManagedIdEntitiesImpl<DirectedPath> implements DirectedPaths
Implementation of DirectedPaths interface- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntitiesImpl
managedIdClass
-
-
Constructor Summary
Constructors Constructor Description DirectedPathsImpl(DirectedPathsImpl directedPathsImpl)
Copy constructorDirectedPathsImpl(IdGroupingToken groupId)
ConstructorDirectedPathsImpl(IdGroupingToken groupId, ContainerisedDirectedPathFactoryImpl directedPathFactory)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectedPathsImpl
clone()
Each map wrapper should be cloneable where the contents are references of the original where possible but the underlying map itself is newly createdContainerisedDirectedPathFactoryImpl
getFactory()
Factory to create paths on this container-
Methods inherited from class org.goplanit.utils.id.ManagedIdEntitiesImpl
getManagedIdClass, recreateIds, reset, updateIdMapping
-
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 java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.goplanit.utils.wrapper.LongMapWrapper
get, remove
-
Methods inherited from interface org.goplanit.utils.id.ManagedIdEntities
containsKey, getManagedIdClass, recreateIds, recreateIds, reset
-
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
-
DirectedPathsImpl
public DirectedPathsImpl(IdGroupingToken groupId)
Constructor- Parameters:
groupId
- to use for creating ids for instances
-
DirectedPathsImpl
public DirectedPathsImpl(IdGroupingToken groupId, ContainerisedDirectedPathFactoryImpl directedPathFactory)
Constructor- Parameters:
groupId
- to use for creating ids for instancesdirectedPathFactory
- the factory to use
-
DirectedPathsImpl
public DirectedPathsImpl(DirectedPathsImpl directedPathsImpl)
Copy constructor- Parameters:
directedPathsImpl
- to copy
-
-
Method Detail
-
getFactory
public ContainerisedDirectedPathFactoryImpl getFactory()
Factory to create paths on this container- Specified by:
getFactory
in interfaceDirectedPaths
- Specified by:
getFactory
in interfaceManagedIdEntities<DirectedPath>
- Returns:
- entity factory
-
clone
public DirectedPathsImpl 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 interfaceDirectedPaths
- Specified by:
clone
in interfaceManagedIdEntities<DirectedPath>
- Specified by:
clone
in interfaceMapWrapper<Long,DirectedPath>
- Specified by:
clone
in classManagedIdEntitiesImpl<DirectedPath>
- Returns:
- copy
-
-