Package org.goplanit.service.routed
Interface RoutedTrip
-
- All Superinterfaces:
Cloneable
,Comparable<IdAble>
,ExternalIdAble
,IdAble
,ManagedId
- All Known Subinterfaces:
RoutedTripFrequency
,RoutedTripSchedule
- All Known Implementing Classes:
RoutedTripFrequencyImpl
,RoutedTripImpl
,RoutedTripScheduleImpl
public interface RoutedTrip extends ExternalIdAble, ManagedId
Base interface for routed trips. Derived interfaces and classes are to be used to define what type of routed trip, e.g., a routed trip with a schedule or frequency. However, despite different types of routed trips they all fall under the same base class and share a unique id across, hence the existence of this interface with its id class.- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description static Class<RoutedTrip>
ROUTED_TRIP_ID_CLASS
id class for generating ids
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Class<RoutedTrip>
getIdClass()
Each managed id class is expected to generate its ids based on its class signature.-
Methods inherited from interface org.goplanit.utils.id.ExternalIdAble
getExternalId, getXmlId, hasExternalId, hasXmlId, setExternalId, setXmlId
-
Methods inherited from interface org.goplanit.utils.id.IdAble
clone, compareTo, getId, idEquals, idHashCode
-
Methods inherited from interface org.goplanit.utils.id.ManagedId
recreateManagedIds, resetChildManagedIdEntities
-
-
-
-
Field Detail
-
ROUTED_TRIP_ID_CLASS
static final Class<RoutedTrip> ROUTED_TRIP_ID_CLASS
id class for generating ids
-
-
Method Detail
-
getIdClass
default Class<RoutedTrip> getIdClass()
Each managed id class is expected to generate its ids based on its class signature. To be able to generate the correct id the class used for id generation is to be provided via this method call.- Specified by:
getIdClass
in interfaceManagedId
- Returns:
- idClass to use for generating ids for instances of this idable derived class
-
-