Class ServiceLegSegmentsImpl
- java.lang.Object
-
- org.goplanit.utils.wrapper.MapWrapperImpl<Long,V>
-
- org.goplanit.utils.wrapper.LongMapWrapperImpl<E>
-
- org.goplanit.utils.id.ManagedIdEntitiesImpl<ServiceLegSegment>
-
- org.goplanit.network.layer.service.ServiceLegSegmentsImpl
-
- All Implemented Interfaces:
Cloneable,Iterable<ServiceLegSegment>,GraphEntities<ServiceLegSegment>,ManagedGraphEntities<ServiceLegSegment>,ManagedIdEntities<ServiceLegSegment>,ServiceLegSegments,LongMapWrapper<ServiceLegSegment>,MapWrapper<Long,ServiceLegSegment>
public class ServiceLegSegmentsImpl extends ManagedIdEntitiesImpl<ServiceLegSegment> implements ServiceLegSegments
Implementation of ServiceLegSegments container.- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntitiesImpl
managedIdClass
-
-
Constructor Summary
Constructors Constructor Description ServiceLegSegmentsImpl(ServiceLegSegmentsImpl serviceNodesImpl)Copy constructorServiceLegSegmentsImpl(IdGroupingToken groupId)ConstructorServiceLegSegmentsImpl(IdGroupingToken groupId, ServiceLegSegmentFactory serviceLegSegmentFactory)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceLegSegmentsImplclone()Each map wrapper should be cloneable where the contents are references of the original where possible but the underlying map itself is newly createdServiceLegSegmentFactorygetFactory()Factory to create instance of graph entity (for this container class)-
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 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
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
-
ServiceLegSegmentsImpl
public ServiceLegSegmentsImpl(IdGroupingToken groupId)
Constructor- Parameters:
groupId- to use for creating ids for instances
-
ServiceLegSegmentsImpl
public ServiceLegSegmentsImpl(IdGroupingToken groupId, ServiceLegSegmentFactory serviceLegSegmentFactory)
Constructor- Parameters:
groupId- to use for creating ids for instancesserviceLegSegmentFactory- the factory to use
-
ServiceLegSegmentsImpl
public ServiceLegSegmentsImpl(ServiceLegSegmentsImpl serviceNodesImpl)
Copy constructor- Parameters:
serviceNodesImpl- to copy
-
-
Method Detail
-
getFactory
public ServiceLegSegmentFactory getFactory()
Factory to create instance of graph entity (for this container class)- Specified by:
getFactoryin interfaceGraphEntities<ServiceLegSegment>- Specified by:
getFactoryin interfaceManagedIdEntities<ServiceLegSegment>- Specified by:
getFactoryin interfaceServiceLegSegments- Returns:
- entity factory
-
clone
public ServiceLegSegmentsImpl 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 interfaceGraphEntities<ServiceLegSegment>- Specified by:
clonein interfaceManagedGraphEntities<ServiceLegSegment>- Specified by:
clonein interfaceManagedIdEntities<ServiceLegSegment>- Specified by:
clonein interfaceMapWrapper<Long,ServiceLegSegment>- Specified by:
clonein interfaceServiceLegSegments- Specified by:
clonein classManagedIdEntitiesImpl<ServiceLegSegment>- Returns:
- copy
-
-