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 RoutedServicesLayers
deepClone()
Deep clone implementationRoutedServicesLayers
deepCloneWithMapping(BiConsumer<RoutedServicesLayer,RoutedServicesLayer> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapperRoutedServicesLayerFactory
getFactory()
Factory to create instance of managed id entity (for this container class)default Map<Mode,RoutedServicesLayer>
indexLayersByMode()
default boolean
isEachLayerEmpty()
Check if each layer itself is emptyRoutedServicesLayers
shallowClone()
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:
shallowClone
in interfaceManagedIdEntities<RoutedServicesLayer>
- Specified by:
shallowClone
in interfaceMapWrapper<Long,RoutedServicesLayer>
- Returns:
- clone of entities
-
deepClone
RoutedServicesLayers deepClone()
Deep clone implementation- Specified by:
deepClone
in 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:
deepCloneWithMapping
in 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:
getFactory
in 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()
-
-