Interface MacroscopicLinks
-
- All Superinterfaces:
Cloneable,GraphEntities<MacroscopicLink>,Iterable<MacroscopicLink>,LongMapWrapper<MacroscopicLink>,ManagedGraphEntities<MacroscopicLink>,ManagedIdEntities<MacroscopicLink>,MapWrapper<Long,MacroscopicLink>
- All Known Implementing Classes:
MacroscopicLinksImpl
public interface MacroscopicLinks extends ManagedGraphEntities<MacroscopicLink>
Primary managed container class for macroscopic links with access to factory capable of creating new links and registering them on the container directly- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MacroscopicLinksdeepClone()Force clone implementationMacroscopicLinksdeepCloneWithMapping(BiConsumer<MacroscopicLink,MacroscopicLink> mapper)Deep clone implementation with mapping retained between original and copies createdMacroscopicLinkFactorygetFactory()Factory to create instance of graph entity (for this container class)default booleanhasLink(long id)verify if link is presentMacroscopicLinksshallowClone()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
MacroscopicLinkFactory getFactory()
Factory to create instance of graph entity (for this container class)- Specified by:
getFactoryin interfaceGraphEntities<MacroscopicLink>- Specified by:
getFactoryin interfaceManagedIdEntities<MacroscopicLink>- Returns:
- entity factory
-
shallowClone
MacroscopicLinks shallowClone()
shallow clone implementation- Specified by:
shallowClonein interfaceGraphEntities<MacroscopicLink>- Specified by:
shallowClonein interfaceManagedGraphEntities<MacroscopicLink>- Specified by:
shallowClonein interfaceManagedIdEntities<MacroscopicLink>- Specified by:
shallowClonein interfaceMapWrapper<Long,MacroscopicLink>- Returns:
- clone of entities
-
deepClone
MacroscopicLinks deepClone()
Force clone implementation- Specified by:
deepClonein interfaceGraphEntities<MacroscopicLink>- Specified by:
deepClonein interfaceManagedGraphEntities<MacroscopicLink>- Specified by:
deepClonein interfaceManagedIdEntities<MacroscopicLink>- Returns:
- clone of entities
-
deepCloneWithMapping
MacroscopicLinks deepCloneWithMapping(BiConsumer<MacroscopicLink,MacroscopicLink> mapper)
Deep clone implementation with mapping retained between original and copies created- Specified by:
deepCloneWithMappingin interfaceGraphEntities<MacroscopicLink>- Specified by:
deepCloneWithMappingin interfaceManagedGraphEntities<MacroscopicLink>- Specified by:
deepCloneWithMappingin interfaceManagedIdEntities<MacroscopicLink>- 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
-
hasLink
default boolean hasLink(long id)
verify if link is present- Parameters:
id- to check- Returns:
- true when present false otherwise
-
-