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 ServiceNodesdeepClone()Force clone implementationServiceNodesdeepCloneWithMapping(BiConsumer<ServiceNode,ServiceNode> mapper)Deep clone implementation with mapping retained between original and copies createdServiceNodeFactorygetFactory()Factory to create instance of graph entity (for this container class)default booleanhasServiceNode(long serviceNodeId)default booleanhasServiceNode(ServiceNode serviceNode)ServiceNodesshallowClone()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:
getFactoryin interfaceGraphEntities<ServiceNode>- Specified by:
getFactoryin interfaceManagedIdEntities<ServiceNode>- Returns:
- entity factory
-
shallowClone
ServiceNodes shallowClone()
shallow clone implementation- Specified by:
shallowClonein interfaceGraphEntities<ServiceNode>- Specified by:
shallowClonein interfaceManagedGraphEntities<ServiceNode>- Specified by:
shallowClonein interfaceManagedIdEntities<ServiceNode>- Specified by:
shallowClonein interfaceMapWrapper<Long,ServiceNode>- Returns:
- clone of entities
-
deepClone
ServiceNodes deepClone()
Force clone implementation- Specified by:
deepClonein interfaceGraphEntities<ServiceNode>- Specified by:
deepClonein interfaceManagedGraphEntities<ServiceNode>- Specified by:
deepClonein 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:
deepCloneWithMappingin interfaceGraphEntities<ServiceNode>- Specified by:
deepCloneWithMappingin interfaceManagedGraphEntities<ServiceNode>- Specified by:
deepCloneWithMappingin 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)
-
-