Package org.goplanit.utils.graph
Interface ManagedGraphEntities<E extends GraphEntity & ManagedId>
-
- Type Parameters:
E
- type of graph entity
- All Superinterfaces:
Cloneable
,GraphEntities<E>
,Iterable<E>
,LongMapWrapper<E>
,ManagedIdEntities<E>
,MapWrapper<Long,E>
- All Known Subinterfaces:
ConjugateConnectoidNodes
,ConjugateConnectoidSegments
,ConjugateLinks
,ConjugateLinkSegments
,ConjugateNodes
,Links<L>
,MacroscopicLinks
,MacroscopicLinkSegments
,Nodes
,ServiceLegs
,ServiceLegSegments
,ServiceNodes
- All Known Implementing Classes:
CentroidVerticesImpl
,ConjugateConnectoidEdgesImpl
,ConjugateConnectoidNodesImpl
,ConjugateConnectoidSegmentsImpl
,ConjugateLinkSegmentsImpl
,ConjugateLinksImpl
,ConjugateNodesImpl
,ConnectoidEdgesImpl
,ConnectoidSegmentsImpl
,LinksImpl
,MacroscopicLinkSegmentsImpl
,MacroscopicLinksImpl
,ManagedGraphEntitiesImpl
,NodesImpl
,ServiceLegSegmentsImpl
,ServiceLegsImpl
,ServiceNodesImpl
public interface ManagedGraphEntities<E extends GraphEntity & ManagedId> extends GraphEntities<E>, ManagedIdEntities<E>
Container class for any graph entities and a factory to create them- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedGraphEntities<E>
deepClone()
Force clone implementationManagedGraphEntities<E>
deepCloneWithMapping(BiConsumer<E,E> mapper)
Deep clone implementation with mapping retained between original and copies createdManagedGraphEntities<E>
shallowClone()
shallow clone implementation-
Methods inherited from interface org.goplanit.utils.graph.GraphEntities
forEachMatchingIdIn, getByExternalId, getByXmlId, getFactory
-
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, getFactory, 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
-
-
-
-
Method Detail
-
shallowClone
ManagedGraphEntities<E> shallowClone()
shallow clone implementation- Specified by:
shallowClone
in interfaceGraphEntities<E extends GraphEntity & ManagedId>
- Specified by:
shallowClone
in interfaceManagedIdEntities<E extends GraphEntity & ManagedId>
- Specified by:
shallowClone
in interfaceMapWrapper<Long,E extends GraphEntity & ManagedId>
- Returns:
- clone of entities
-
deepClone
ManagedGraphEntities<E> deepClone()
Force clone implementation- Specified by:
deepClone
in interfaceGraphEntities<E extends GraphEntity & ManagedId>
- Specified by:
deepClone
in interfaceManagedIdEntities<E extends GraphEntity & ManagedId>
- Returns:
- clone of entities
-
deepCloneWithMapping
ManagedGraphEntities<E> deepCloneWithMapping(BiConsumer<E,E> mapper)
Deep clone implementation with mapping retained between original and copies created- Specified by:
deepCloneWithMapping
in interfaceGraphEntities<E extends GraphEntity & ManagedId>
- Specified by:
deepCloneWithMapping
in interfaceManagedIdEntities<E extends GraphEntity & ManagedId>
- Parameters:
mapper
- that is applied to each deep copy entity mapping pair of origin and copy- Returns:
- pair with deep copy of entities and mapping from original entities to deep copies of these entities
-
-