Interface RoutedModeServices
-
- All Superinterfaces:
Iterable<RoutedService>
,LongMapWrapper<RoutedService>
,ManagedIdEntities<RoutedService>
,MapWrapper<Long,RoutedService>
- All Known Implementing Classes:
RoutedModeServicesImpl
public interface RoutedModeServices extends ManagedIdEntities<RoutedService>
Interface for wrapper container class around RoutedModeServices for a particular mode. This container is used to store instances of a routed service for a given mode- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RoutedModeServices
deepClone()
Deep clone implementationRoutedModeServices
deepCloneWithMapping(BiConsumer<RoutedService,RoutedService> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapperRoutedServiceFactory
getFactory()
Factory to create instance of managed id entity (for this container class)Mode
getMode()
The supported mode for the routed services registeredRoutedModeServices
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
-
getMode
Mode getMode()
The supported mode for the routed services registered- Returns:
- supported mode
-
shallowClone
RoutedModeServices shallowClone()
Shallow clone implementation- Specified by:
shallowClone
in interfaceManagedIdEntities<RoutedService>
- Specified by:
shallowClone
in interfaceMapWrapper<Long,RoutedService>
- Returns:
- clone of entities
-
deepClone
RoutedModeServices deepClone()
Deep clone implementation- Specified by:
deepClone
in interfaceManagedIdEntities<RoutedService>
- Returns:
- deep copy of entities
-
deepCloneWithMapping
RoutedModeServices deepCloneWithMapping(BiConsumer<RoutedService,RoutedService> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapper- Specified by:
deepCloneWithMapping
in interfaceManagedIdEntities<RoutedService>
- Parameters:
mapper
- to apply to each mapping between original and copy- Returns:
- copy
-
getFactory
RoutedServiceFactory getFactory()
Factory to create instance of managed id entity (for this container class)- Specified by:
getFactory
in interfaceManagedIdEntities<RoutedService>
- Returns:
- entity factory
-
-