Package org.goplanit.network.virtual
Class ConjugateConnectoidSegmentsImpl
- java.lang.Object
-
- org.goplanit.utils.wrapper.MapWrapperImpl<Long,V>
-
- org.goplanit.utils.wrapper.LongMapWrapperImpl<E>
-
- org.goplanit.utils.id.ManagedIdEntitiesImpl<E>
-
- org.goplanit.utils.graph.ManagedGraphEntitiesImpl<ConjugateConnectoidSegment>
-
- org.goplanit.network.virtual.ConjugateConnectoidSegmentsImpl
-
- All Implemented Interfaces:
Cloneable,Iterable<ConjugateConnectoidSegment>,GraphEntities<ConjugateConnectoidSegment>,ManagedGraphEntities<ConjugateConnectoidSegment>,ManagedIdEntities<ConjugateConnectoidSegment>,ConjugateConnectoidSegments,LongMapWrapper<ConjugateConnectoidSegment>,MapWrapper<Long,ConjugateConnectoidSegment>
public class ConjugateConnectoidSegmentsImpl extends ManagedGraphEntitiesImpl<ConjugateConnectoidSegment> implements ConjugateConnectoidSegments
Conjugate connectoid segments primary managed container implementation- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntitiesImpl
managedIdClass
-
-
Constructor Summary
Constructors Constructor Description ConjugateConnectoidSegmentsImpl(ConjugateConnectoidSegmentsImpl other, boolean deepCopy, BiConsumer<ConjugateConnectoidSegment,ConjugateConnectoidSegment> mapper)Copy constructor, also creates new factory with this as its underlying containerConjugateConnectoidSegmentsImpl(IdGroupingToken groupId)ConstructorConjugateConnectoidSegmentsImpl(IdGroupingToken groupId, ConjugateConnectoidSegmentFactory factory)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConjugateConnectoidSegmentsImpldeepClone()Deep clone implementationConjugateConnectoidSegmentsImpldeepCloneWithMapping(BiConsumer<ConjugateConnectoidSegment,ConjugateConnectoidSegment> mapper)Deep clone implementation where the mapping for its internal copies is captured by the provided mapperConjugateConnectoidSegmentFactorygetFactory()Factory to create instance of graph entity (for this container class)ConjugateConnectoidSegmentsImplshallowClone()Each map wrapper should be cloneable where the contents are references of the original where possible but the underlying map itself is newly created-
Methods inherited from class org.goplanit.utils.graph.ManagedGraphEntitiesImpl
getByXmlId
-
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, containsValue, createEmptyInstance, firstMatch, get, getKeyByValue, getMap, getValueToKey, isEmpty, iterator, register, remove, removeIf, setMap, size, toCollection, valuesAsNewSet
-
Methods inherited from class java.lang.Object
clone, 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, groupBy, recreateIds, recreateIds, reset, streamSortedBy
-
Methods inherited from interface org.goplanit.utils.wrapper.MapWrapper
addAll, clear, containsValue, firstMatch, forEachIn, get, getFirst, getKeyByValue, isEmpty, register, remove, removeAll, removeIf, size, stream, streamSorted, toCollection, toMap, valuesAsNewSet
-
-
-
-
Constructor Detail
-
ConjugateConnectoidSegmentsImpl
public ConjugateConnectoidSegmentsImpl(IdGroupingToken groupId)
Constructor- Parameters:
groupId- to use for creating ids for instances
-
ConjugateConnectoidSegmentsImpl
public ConjugateConnectoidSegmentsImpl(IdGroupingToken groupId, ConjugateConnectoidSegmentFactory factory)
Constructor- Parameters:
groupId- to use for creating ids for instancesfactory- the factory to use
-
ConjugateConnectoidSegmentsImpl
public ConjugateConnectoidSegmentsImpl(ConjugateConnectoidSegmentsImpl other, boolean deepCopy, BiConsumer<ConjugateConnectoidSegment,ConjugateConnectoidSegment> mapper)
Copy constructor, also creates new factory with this as its underlying container- Parameters:
other- to copydeepCopy- when true, create a deep copy, shallow copy otherwisemapper- apply to each mapping from original to copy
-
-
Method Detail
-
getFactory
public ConjugateConnectoidSegmentFactory getFactory()
Factory to create instance of graph entity (for this container class)- Specified by:
getFactoryin interfaceConjugateConnectoidSegments- Specified by:
getFactoryin interfaceGraphEntities<ConjugateConnectoidSegment>- Specified by:
getFactoryin interfaceManagedIdEntities<ConjugateConnectoidSegment>- Returns:
- entity factory
-
shallowClone
public ConjugateConnectoidSegmentsImpl shallowClone()
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:
shallowClonein interfaceConjugateConnectoidSegments- Specified by:
shallowClonein interfaceGraphEntities<ConjugateConnectoidSegment>- Specified by:
shallowClonein interfaceManagedGraphEntities<ConjugateConnectoidSegment>- Specified by:
shallowClonein interfaceManagedIdEntities<ConjugateConnectoidSegment>- Specified by:
shallowClonein interfaceMapWrapper<Long,ConjugateConnectoidSegment>- Specified by:
shallowClonein classManagedGraphEntitiesImpl<ConjugateConnectoidSegment>- Returns:
- copy
-
deepClone
public ConjugateConnectoidSegmentsImpl deepClone()
Deep clone implementation- Specified by:
deepClonein interfaceConjugateConnectoidSegments- Specified by:
deepClonein interfaceGraphEntities<ConjugateConnectoidSegment>- Specified by:
deepClonein interfaceManagedGraphEntities<ConjugateConnectoidSegment>- Specified by:
deepClonein interfaceManagedIdEntities<ConjugateConnectoidSegment>- Specified by:
deepClonein classManagedGraphEntitiesImpl<ConjugateConnectoidSegment>- Returns:
- deep copy of entities
-
deepCloneWithMapping
public ConjugateConnectoidSegmentsImpl deepCloneWithMapping(BiConsumer<ConjugateConnectoidSegment,ConjugateConnectoidSegment> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapper- Specified by:
deepCloneWithMappingin interfaceConjugateConnectoidSegments- Specified by:
deepCloneWithMappingin interfaceGraphEntities<ConjugateConnectoidSegment>- Specified by:
deepCloneWithMappingin interfaceManagedGraphEntities<ConjugateConnectoidSegment>- Specified by:
deepCloneWithMappingin interfaceManagedIdEntities<ConjugateConnectoidSegment>- Specified by:
deepCloneWithMappingin classManagedGraphEntitiesImpl<ConjugateConnectoidSegment>- Parameters:
mapper- to apply to each mapping between original and copy- Returns:
- copy
-
-