Interface RoutedServicesLayers
-
- All Superinterfaces:
Iterable<RoutedServicesLayer>,LongMapWrapper<RoutedServicesLayer>,ManagedIdEntities<RoutedServicesLayer>,MapWrapper<Long,RoutedServicesLayer>
- All Known Implementing Classes:
RoutedServicesLayersImpl
public interface RoutedServicesLayers extends ManagedIdEntities<RoutedServicesLayer>
Interface for wrapper container class around RoutedServiceLayer instances. This container is used to categorise the entires in RoutedServices by their parent network layers.- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RoutedServicesLayersdeepClone()Deep clone implementationRoutedServicesLayersdeepCloneWithMapping(BiConsumer<RoutedServicesLayer,RoutedServicesLayer> mapper)Deep clone implementation where the mapping for its internal copies is captured by the provided mapperRoutedServicesLayerFactorygetFactory()Factory to create instance of managed id entity (for this container class)default Map<Mode,RoutedServicesLayer>indexLayersByMode()default booleanisEachLayerEmpty()Check if each layer itself is emptyRoutedServicesLayersshallowClone()Shallow clone implementation-
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
-
shallowClone
RoutedServicesLayers shallowClone()
Shallow clone implementation- Specified by:
shallowClonein interfaceManagedIdEntities<RoutedServicesLayer>- Specified by:
shallowClonein interfaceMapWrapper<Long,RoutedServicesLayer>- Returns:
- clone of entities
-
deepClone
RoutedServicesLayers deepClone()
Deep clone implementation- Specified by:
deepClonein interfaceManagedIdEntities<RoutedServicesLayer>- Returns:
- deep copy of entities
-
deepCloneWithMapping
RoutedServicesLayers deepCloneWithMapping(BiConsumer<RoutedServicesLayer,RoutedServicesLayer> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapper- Specified by:
deepCloneWithMappingin interfaceManagedIdEntities<RoutedServicesLayer>- Parameters:
mapper- to apply to each mapping between original and copy- Returns:
- copy
-
getFactory
RoutedServicesLayerFactory getFactory()
Factory to create instance of managed id entity (for this container class)- Specified by:
getFactoryin interfaceManagedIdEntities<RoutedServicesLayer>- Returns:
- entity factory
-
isEachLayerEmpty
default boolean isEachLayerEmpty()
Check if each layer itself is empty- Returns:
- true when all empty false otherwise
-
indexLayersByMode
default Map<Mode,RoutedServicesLayer> indexLayersByMode()
-
-