Package org.goplanit.service.routed
Class RoutedModeServicesImpl
- java.lang.Object
-
- org.goplanit.utils.wrapper.MapWrapperImpl<Long,V>
-
- org.goplanit.utils.wrapper.LongMapWrapperImpl<E>
-
- org.goplanit.utils.id.ManagedIdEntitiesImpl<RoutedService>
-
- org.goplanit.service.routed.RoutedModeServicesImpl
-
- All Implemented Interfaces:
Cloneable
,Iterable<RoutedService>
,RoutedModeServices
,ManagedIdEntities<RoutedService>
,LongMapWrapper<RoutedService>
,MapWrapper<Long,RoutedService>
public class RoutedModeServicesImpl extends ManagedIdEntitiesImpl<RoutedService> implements RoutedModeServices
Implementation of the RoutedModeServices interface- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntitiesImpl
managedIdClass
-
-
Constructor Summary
Constructors Constructor Description RoutedModeServicesImpl(RoutedModeServicesImpl routedModeServicesImpl)
Copy constructorRoutedModeServicesImpl(IdGroupingToken tokenId, Mode supportedMode)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoutedModeServicesImpl
clone()
Each map wrapper should be cloneable where the contents are references of the original where possible but the underlying map itself is newly createdRoutedServiceFactory
getFactory()
Factory to create instance of managed id entity (for this container class)Mode
getMode()
The supported mode for the routed services registered-
Methods inherited from class org.goplanit.utils.id.ManagedIdEntitiesImpl
getManagedIdClass, recreateIds, reset, updateIdMapping
-
Methods inherited from class org.goplanit.utils.wrapper.LongMapWrapperImpl
containsKey, get, remove
-
Methods inherited from class org.goplanit.utils.wrapper.MapWrapperImpl
clear, contains, createEmptyInstance, findFirst, get, getKeyByValue, getMap, getValueToKey, isEmpty, iterator, register, remove, setMap, size, toCollection, valuesAsNewSet
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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, recreateIds, recreateIds, reset
-
Methods inherited from interface org.goplanit.utils.wrapper.MapWrapper
addAll, clear, contains, findFirst, forEachIn, get, getFirst, getKeyByValue, isEmpty, register, remove, size, toCollection, valuesAsNewSet
-
-
-
-
Constructor Detail
-
RoutedModeServicesImpl
public RoutedModeServicesImpl(IdGroupingToken tokenId, Mode supportedMode)
Constructor- Parameters:
tokenId
- to use for id generationsupportedMode
- mode all routed services adhere to
-
RoutedModeServicesImpl
public RoutedModeServicesImpl(RoutedModeServicesImpl routedModeServicesImpl)
Copy constructor- Parameters:
routedModeServicesImpl
- to copy
-
-
Method Detail
-
clone
public RoutedModeServicesImpl clone()
Each map wrapper should be cloneable where the contents are references of the original where possible but the underlying map itself is newly created- Specified by:
clone
in interfaceManagedIdEntities<RoutedService>
- Specified by:
clone
in interfaceMapWrapper<Long,RoutedService>
- Specified by:
clone
in interfaceRoutedModeServices
- Specified by:
clone
in classManagedIdEntitiesImpl<RoutedService>
- Returns:
- copy
-
getFactory
public RoutedServiceFactory getFactory()
Factory to create instance of managed id entity (for this container class)- Specified by:
getFactory
in interfaceManagedIdEntities<RoutedService>
- Specified by:
getFactory
in interfaceRoutedModeServices
- Returns:
- entity factory
-
getMode
public final Mode getMode()
The supported mode for the routed services registered- Specified by:
getMode
in interfaceRoutedModeServices
- Returns:
- supported mode
-
-