Interface ServiceNodes
-
- All Superinterfaces:
Cloneable
,GraphEntities<ServiceNode>
,Iterable<ServiceNode>
,LongMapWrapper<ServiceNode>
,ManagedGraphEntities<ServiceNode>
,ManagedIdEntities<ServiceNode>
,MapWrapper<Long,ServiceNode>
- All Known Implementing Classes:
ServiceNodesImpl
public interface ServiceNodes extends ManagedGraphEntities<ServiceNode>
Service node container and factory- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ServiceNodes
deepClone()
Force clone implementationServiceNodes
deepCloneWithMapping(BiConsumer<ServiceNode,ServiceNode> mapper)
Deep clone implementation with mapping retained between original and copies createdServiceNodeFactory
getFactory()
Factory to create instance of graph entity (for this container class)default boolean
hasServiceNode(long serviceNodeId)
default boolean
hasServiceNode(ServiceNode serviceNode)
ServiceNodes
shallowClone()
shallow clone implementation-
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
-
-
-
-
Method Detail
-
getFactory
ServiceNodeFactory getFactory()
Factory to create instance of graph entity (for this container class)- Specified by:
getFactory
in interfaceGraphEntities<ServiceNode>
- Specified by:
getFactory
in interfaceManagedIdEntities<ServiceNode>
- Returns:
- entity factory
-
shallowClone
ServiceNodes shallowClone()
shallow clone implementation- Specified by:
shallowClone
in interfaceGraphEntities<ServiceNode>
- Specified by:
shallowClone
in interfaceManagedGraphEntities<ServiceNode>
- Specified by:
shallowClone
in interfaceManagedIdEntities<ServiceNode>
- Specified by:
shallowClone
in interfaceMapWrapper<Long,ServiceNode>
- Returns:
- clone of entities
-
deepClone
ServiceNodes deepClone()
Force clone implementation- Specified by:
deepClone
in interfaceGraphEntities<ServiceNode>
- Specified by:
deepClone
in interfaceManagedGraphEntities<ServiceNode>
- Specified by:
deepClone
in interfaceManagedIdEntities<ServiceNode>
- Returns:
- clone of entities
-
deepCloneWithMapping
ServiceNodes deepCloneWithMapping(BiConsumer<ServiceNode,ServiceNode> mapper)
Deep clone implementation with mapping retained between original and copies created- Specified by:
deepCloneWithMapping
in interfaceGraphEntities<ServiceNode>
- Specified by:
deepCloneWithMapping
in interfaceManagedGraphEntities<ServiceNode>
- Specified by:
deepCloneWithMapping
in interfaceManagedIdEntities<ServiceNode>
- 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
-
hasServiceNode
default boolean hasServiceNode(long serviceNodeId)
-
hasServiceNode
default boolean hasServiceNode(ServiceNode serviceNode)
-
-