Package org.goplanit.graph
Class EdgesImpl
- java.lang.Object
- 
- org.goplanit.utils.wrapper.MapWrapperImpl<Long,V>
- 
- org.goplanit.utils.wrapper.LongMapWrapperImpl<E>
- 
- org.goplanit.utils.graph.GraphEntitiesImpl<Edge>
- 
- org.goplanit.graph.EdgesImpl
 
 
 
 
- 
- All Implemented Interfaces:
- Cloneable,- Iterable<Edge>,- Edges,- GraphEntities<Edge>,- LongMapWrapper<Edge>,- MapWrapper<Long,Edge>
 
 public class EdgesImpl extends GraphEntitiesImpl<Edge> implements Edges Implementation of Edges interface- Author:
- markr
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedEdgesImpl(EdgesImpl edgesImpl, boolean deepCopy, BiConsumer<Edge,Edge> biConsumer)Copy constructor, also creates a new factory with reference to this containerEdgesImpl(EdgeFactory edgeFactory)ConstructorEdgesImpl(IdGroupingToken groupId)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description EdgesImpldeepClone()Deep clone implementationEdgesImpldeepCloneWithMapping(BiConsumer<Edge,Edge> mapper)Deep clone implementation with mapping retained between original and copies createdEdgeFactorygetFactory()Collect the edge factory to use for creating instancesEdgesImplshallowClone()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.GraphEntitiesImplgetByXmlId
 - 
Methods inherited from class org.goplanit.utils.wrapper.LongMapWrapperImplcontainsKey, get, remove
 - 
Methods inherited from class org.goplanit.utils.wrapper.MapWrapperImplclear, containsValue, createEmptyInstance, firstMatch, get, getKeyByValue, getMap, getValueToKey, isEmpty, iterator, register, remove, removeIf, setMap, size, toCollection, valuesAsNewSet
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.goplanit.utils.graph.GraphEntitiesforEachMatchingIdIn, getByExternalId, getByXmlId
 - 
Methods inherited from interface java.lang.IterableforEach, iterator, spliterator
 - 
Methods inherited from interface org.goplanit.utils.wrapper.LongMapWrappercontainsKey, get, remove
 - 
Methods inherited from interface org.goplanit.utils.wrapper.MapWrapperaddAll, clear, containsValue, firstMatch, forEachIn, get, getFirst, getKeyByValue, isEmpty, register, remove, removeAll, removeIf, size, stream, streamSorted, toCollection, toMap, valuesAsNewSet
 
- 
 
- 
- 
- 
Constructor Detail- 
EdgesImplprotected EdgesImpl(EdgesImpl edgesImpl, boolean deepCopy, BiConsumer<Edge,Edge> biConsumer) Copy constructor, also creates a new factory with reference to this container- Parameters:
- edgesImpl- to copy
- deepCopy- when true, create a deep copy, shallow copy otherwise
- biConsumer- when deepCopy applied to each original and copy, may be null
 
 - 
EdgesImplpublic EdgesImpl(IdGroupingToken groupId) Constructor- Parameters:
- groupId- to use for creating ids for instances
 
 - 
EdgesImplpublic EdgesImpl(EdgeFactory edgeFactory) Constructor- Parameters:
- edgeFactory- to use
 
 
- 
 - 
Method Detail- 
getFactorypublic EdgeFactory getFactory() Collect the edge factory to use for creating instances- Specified by:
- getFactoryin interface- Edges
- Specified by:
- getFactoryin interface- GraphEntities<Edge>
- Returns:
- edgeFactory to create edges for this container
 
 - 
shallowClonepublic EdgesImpl 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 interface- Edges
- Specified by:
- shallowClonein interface- GraphEntities<Edge>
- Specified by:
- shallowClonein interface- MapWrapper<Long,Edge>
- Specified by:
- shallowClonein class- GraphEntitiesImpl<Edge>
- Returns:
- copy
 
 - 
deepClonepublic EdgesImpl deepClone() Deep clone implementation- Specified by:
- deepClonein interface- Edges
- Specified by:
- deepClonein interface- GraphEntities<Edge>
- Specified by:
- deepClonein class- GraphEntitiesImpl<Edge>
- Returns:
- deep copy of entities
 
 - 
deepCloneWithMappingpublic EdgesImpl deepCloneWithMapping(BiConsumer<Edge,Edge> mapper) Deep clone implementation with mapping retained between original and copies created- Specified by:
- deepCloneWithMappingin interface- Edges
- Specified by:
- deepCloneWithMappingin interface- GraphEntities<Edge>
- Specified by:
- deepCloneWithMappingin class- GraphEntitiesImpl<Edge>
- 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
 
 
- 
 
-