Package org.goplanit.network.virtual
Class ConjugateConnectoidEdgesImpl
- 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<ConjugateConnectoidEdge>
-
- org.goplanit.network.virtual.ConjugateConnectoidEdgesImpl
-
- All Implemented Interfaces:
Cloneable,Iterable<ConjugateConnectoidEdge>,GraphEntities<ConjugateConnectoidEdge>,ManagedGraphEntities<ConjugateConnectoidEdge>,ManagedIdEntities<ConjugateConnectoidEdge>,ConjugateConnectoidEdges,LongMapWrapper<ConjugateConnectoidEdge>,MapWrapper<Long,ConjugateConnectoidEdge>
public class ConjugateConnectoidEdgesImpl extends ManagedGraphEntitiesImpl<ConjugateConnectoidEdge> implements ConjugateConnectoidEdges
Conjugate connectoid edge container implementation- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntitiesImpl
managedIdClass
-
-
Constructor Summary
Constructors Constructor Description ConjugateConnectoidEdgesImpl(ConjugateConnectoidEdgesImpl other, boolean deepCopy, BiConsumer<ConjugateConnectoidEdge,ConjugateConnectoidEdge> mapper)Copy constructor, also creates new factory with this as its underlying containerConjugateConnectoidEdgesImpl(IdGroupingToken groupId)ConstructorConjugateConnectoidEdgesImpl(IdGroupingToken groupId, ConjugateConnectoidEdgeFactory factory)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()clear the containerConjugateConnectoidEdgesImpldeepClone()Deep clone implementationConjugateConnectoidEdgesImpldeepCloneWithMapping(BiConsumer<ConjugateConnectoidEdge,ConjugateConnectoidEdge> mapper)Deep clone implementation where the mapping for its internal copies is captured by the provided mapperConjugateConnectoidEdgeFactorygetFactory()Factory to create instance of graph entity (for this container class)voidrecreateIds(boolean resetManagedIdClass)Recreate the ids for all registered entities with or without resetting, this includes child managed ids, i.e., nested magedidentities containers if so indicatedConjugateConnectoidEdgesImplshallowClone()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, reset, updateIdMapping
-
Methods inherited from class org.goplanit.utils.wrapper.LongMapWrapperImpl
containsKey, get, remove
-
Methods inherited from class org.goplanit.utils.wrapper.MapWrapperImpl
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, reset, streamSortedBy
-
Methods inherited from interface org.goplanit.utils.wrapper.MapWrapper
addAll, containsValue, firstMatch, forEachIn, get, getFirst, getKeyByValue, isEmpty, register, remove, removeAll, removeIf, size, stream, streamSorted, toCollection, toMap, valuesAsNewSet
-
-
-
-
Constructor Detail
-
ConjugateConnectoidEdgesImpl
public ConjugateConnectoidEdgesImpl(IdGroupingToken groupId)
Constructor- Parameters:
groupId- to use for creating ids for instances
-
ConjugateConnectoidEdgesImpl
public ConjugateConnectoidEdgesImpl(IdGroupingToken groupId, ConjugateConnectoidEdgeFactory factory)
Constructor- Parameters:
groupId- to use for creating ids for instancesfactory- the factory to use
-
ConjugateConnectoidEdgesImpl
public ConjugateConnectoidEdgesImpl(ConjugateConnectoidEdgesImpl other, boolean deepCopy, BiConsumer<ConjugateConnectoidEdge,ConjugateConnectoidEdge> 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 ConjugateConnectoidEdgeFactory getFactory()
Factory to create instance of graph entity (for this container class)- Specified by:
getFactoryin interfaceConjugateConnectoidEdges- Specified by:
getFactoryin interfaceGraphEntities<ConjugateConnectoidEdge>- Specified by:
getFactoryin interfaceManagedIdEntities<ConjugateConnectoidEdge>- Returns:
- entity factory
-
recreateIds
public void recreateIds(boolean resetManagedIdClass)
Recreate the ids for all registered entities with or without resetting, this includes child managed ids, i.e., nested magedidentities containers if so indicated- Specified by:
recreateIdsin interfaceManagedIdEntities<ConjugateConnectoidEdge>- Overrides:
recreateIdsin classManagedIdEntitiesImpl<ConjugateConnectoidEdge>- Parameters:
resetManagedIdClass- when true we reset the managedId's counter to zero (via its id class) before recreating the ids, otherwise we simply recreate the managed id by starting with the next available id without resetting
-
shallowClone
public ConjugateConnectoidEdgesImpl 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 interfaceConjugateConnectoidEdges- Specified by:
shallowClonein interfaceGraphEntities<ConjugateConnectoidEdge>- Specified by:
shallowClonein interfaceManagedGraphEntities<ConjugateConnectoidEdge>- Specified by:
shallowClonein interfaceManagedIdEntities<ConjugateConnectoidEdge>- Specified by:
shallowClonein interfaceMapWrapper<Long,ConjugateConnectoidEdge>- Specified by:
shallowClonein classManagedGraphEntitiesImpl<ConjugateConnectoidEdge>- Returns:
- copy
-
deepClone
public ConjugateConnectoidEdgesImpl deepClone()
Deep clone implementation- Specified by:
deepClonein interfaceConjugateConnectoidEdges- Specified by:
deepClonein interfaceGraphEntities<ConjugateConnectoidEdge>- Specified by:
deepClonein interfaceManagedGraphEntities<ConjugateConnectoidEdge>- Specified by:
deepClonein interfaceManagedIdEntities<ConjugateConnectoidEdge>- Specified by:
deepClonein classManagedGraphEntitiesImpl<ConjugateConnectoidEdge>- Returns:
- deep copy of entities
-
deepCloneWithMapping
public ConjugateConnectoidEdgesImpl deepCloneWithMapping(BiConsumer<ConjugateConnectoidEdge,ConjugateConnectoidEdge> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapper- Specified by:
deepCloneWithMappingin interfaceConjugateConnectoidEdges- Specified by:
deepCloneWithMappingin interfaceGraphEntities<ConjugateConnectoidEdge>- Specified by:
deepCloneWithMappingin interfaceManagedGraphEntities<ConjugateConnectoidEdge>- Specified by:
deepCloneWithMappingin interfaceManagedIdEntities<ConjugateConnectoidEdge>- Specified by:
deepCloneWithMappingin classManagedGraphEntitiesImpl<ConjugateConnectoidEdge>- Parameters:
mapper- to apply to each mapping between original and copy- Returns:
- copy
-
clear
public void clear()
clear the container- Specified by:
clearin interfaceMapWrapper<Long,ConjugateConnectoidEdge>- Overrides:
clearin classMapWrapperImpl<Long,ConjugateConnectoidEdge>
-
-