Interface RoutedTrips<T extends RoutedTrip>
-
- All Superinterfaces:
Iterable<T>
,LongMapWrapper<T>
,ManagedIdEntities<T>
,MapWrapper<Long,T>
- All Known Subinterfaces:
RoutedTripsFrequency
,RoutedTripsSchedule
- All Known Implementing Classes:
RoutedTripsFrequencyImpl
,RoutedTripsImpl
,RoutedTripsScheduleImpl
public interface RoutedTrips<T extends RoutedTrip> extends ManagedIdEntities<T>, Iterable<T>
Base class for routed trips container for some derived type of RoutedTrip (either schedule or frequency based for example).- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RoutedTrips
deepClone()
Deep clone implementationRoutedTrips
deepCloneWithMapping(BiConsumer<T,T> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapperdefault Set<ServiceNode>
determineUsedServiceNodes()
Get all used service nodes along all registered trips as a newly created setRoutedTripFactory<T>
getFactory()
Factory to create instance of managed id entity (for this container class)RoutedTrips
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
-
getFactory
RoutedTripFactory<T> getFactory()
Factory to create instance of managed id entity (for this container class)- Specified by:
getFactory
in interfaceManagedIdEntities<T extends RoutedTrip>
- Returns:
- entity factory
-
determineUsedServiceNodes
default Set<ServiceNode> determineUsedServiceNodes()
Get all used service nodes along all registered trips as a newly created set- Returns:
- used service nodes
-
shallowClone
RoutedTrips shallowClone()
Shallow clone implementation- Specified by:
shallowClone
in interfaceManagedIdEntities<T extends RoutedTrip>
- Specified by:
shallowClone
in interfaceMapWrapper<Long,T extends RoutedTrip>
- Returns:
- clone of entities
-
deepClone
RoutedTrips deepClone()
Deep clone implementation- Specified by:
deepClone
in interfaceManagedIdEntities<T extends RoutedTrip>
- Returns:
- deep copy of entities
-
deepCloneWithMapping
RoutedTrips deepCloneWithMapping(BiConsumer<T,T> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapper- Specified by:
deepCloneWithMapping
in interfaceManagedIdEntities<T extends RoutedTrip>
- Parameters:
mapper
- to apply to each mapping between original and copy- Returns:
- copy
-
-