Package org.goplanit.service.routed
Class RoutedTripsImpl<T extends RoutedTrip>
- java.lang.Object
-
- org.goplanit.utils.wrapper.MapWrapperImpl<Long,V>
-
- org.goplanit.utils.wrapper.LongMapWrapperImpl<E>
-
- org.goplanit.utils.id.ManagedIdEntitiesImpl<T>
-
- org.goplanit.service.routed.RoutedTripsImpl<T>
-
- All Implemented Interfaces:
Cloneable
,Iterable<T>
,RoutedTrips<T>
,ManagedIdEntities<T>
,LongMapWrapper<T>
,MapWrapper<Long,T>
- Direct Known Subclasses:
RoutedTripsFrequencyImpl
,RoutedTripsScheduleImpl
public abstract class RoutedTripsImpl<T extends RoutedTrip> extends ManagedIdEntitiesImpl<T> implements RoutedTrips<T>
Base class for toued trips of some derived type (either schedule or frequency based for example).- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description protected RoutedTripFactory<T>
factory
factory for this container class-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntitiesImpl
managedIdClass
-
-
Constructor Summary
Constructors Modifier Constructor Description RoutedTripsImpl(RoutedTripsImpl<T> routedTripsBase)
Copy constructorprotected
RoutedTripsImpl(IdGroupingToken tokenId)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoutedTripFactory<T>
getFactory()
Factory to create instance of managed id entity (for this container class)protected void
setFactory(RoutedTripFactory<T> factory)
The factory to use.-
Methods inherited from class org.goplanit.utils.id.ManagedIdEntitiesImpl
clone, 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
clone, 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
-
-
-
-
Field Detail
-
factory
protected RoutedTripFactory<T extends RoutedTrip> factory
factory for this container class
-
-
Constructor Detail
-
RoutedTripsImpl
protected RoutedTripsImpl(IdGroupingToken tokenId)
Constructor- Parameters:
tokenId
- to use
-
RoutedTripsImpl
public RoutedTripsImpl(RoutedTripsImpl<T> routedTripsBase)
Copy constructor- Parameters:
routedTripsBase
- to copy
-
-
Method Detail
-
setFactory
protected void setFactory(RoutedTripFactory<T> factory)
The factory to use. To be set once by super class immediately after construction of the instance- Parameters:
factory
- to use
-
getFactory
public RoutedTripFactory<T> getFactory()
Factory to create instance of managed id entity (for this container class)- Specified by:
getFactory
in interfaceManagedIdEntities<T extends RoutedTrip>
- Specified by:
getFactory
in interfaceRoutedTrips<T extends RoutedTrip>
- Returns:
- entity factory
-
-