Interface ServiceLegSegments
-
- All Superinterfaces:
Cloneable,GraphEntities<ServiceLegSegment>,Iterable<ServiceLegSegment>,LongMapWrapper<ServiceLegSegment>,ManagedGraphEntities<ServiceLegSegment>,ManagedIdEntities<ServiceLegSegment>,MapWrapper<Long,ServiceLegSegment>
- All Known Implementing Classes:
ServiceLegSegmentsImpl
public interface ServiceLegSegments extends ManagedGraphEntities<ServiceLegSegment>
Container for service leg segments- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ServiceLegSegmentsdeepClone()Force clone implementationServiceLegSegmentsdeepCloneWithMapping(BiConsumer<ServiceLegSegment,ServiceLegSegment> mapper)Deep clone implementation with mapping retained between original and copies createdServiceLegSegmentFactorygetFactory()Factory to create instance of graph entity (for this container class)default booleanhasServiceLegSegment(long serviceLegSegmentId)Verify if presentdefault booleanhasServiceLegSegment(ServiceLegSegment parentLegSegment)Verify if presentServiceLegSegmentsshallowClone()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
ServiceLegSegmentFactory getFactory()
Factory to create instance of graph entity (for this container class)- Specified by:
getFactoryin interfaceGraphEntities<ServiceLegSegment>- Specified by:
getFactoryin interfaceManagedIdEntities<ServiceLegSegment>- Returns:
- entity factory
-
shallowClone
ServiceLegSegments shallowClone()
shallow clone implementation- Specified by:
shallowClonein interfaceGraphEntities<ServiceLegSegment>- Specified by:
shallowClonein interfaceManagedGraphEntities<ServiceLegSegment>- Specified by:
shallowClonein interfaceManagedIdEntities<ServiceLegSegment>- Specified by:
shallowClonein interfaceMapWrapper<Long,ServiceLegSegment>- Returns:
- clone of entities
-
deepClone
ServiceLegSegments deepClone()
Force clone implementation- Specified by:
deepClonein interfaceGraphEntities<ServiceLegSegment>- Specified by:
deepClonein interfaceManagedGraphEntities<ServiceLegSegment>- Specified by:
deepClonein interfaceManagedIdEntities<ServiceLegSegment>- Returns:
- clone of entities
-
deepCloneWithMapping
ServiceLegSegments deepCloneWithMapping(BiConsumer<ServiceLegSegment,ServiceLegSegment> mapper)
Deep clone implementation with mapping retained between original and copies created- Specified by:
deepCloneWithMappingin interfaceGraphEntities<ServiceLegSegment>- Specified by:
deepCloneWithMappingin interfaceManagedGraphEntities<ServiceLegSegment>- Specified by:
deepCloneWithMappingin interfaceManagedIdEntities<ServiceLegSegment>- 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
-
hasServiceLegSegment
default boolean hasServiceLegSegment(long serviceLegSegmentId)
Verify if present- Parameters:
serviceLegSegmentId- to verify- Returns:
- true when present, false otherwise
-
hasServiceLegSegment
default boolean hasServiceLegSegment(ServiceLegSegment parentLegSegment)
Verify if present- Parameters:
parentLegSegment- to verify- Returns:
- true when present, false otherwise
-
-