Interface RoutedTripDepartures
-
- All Superinterfaces:
Iterable<RoutedTripDeparture>
,LongMapWrapper<RoutedTripDeparture>
,ManagedIdEntities<RoutedTripDeparture>
,MapWrapper<Long,RoutedTripDeparture>
- All Known Implementing Classes:
RoutedTripDeparturesImpl
public interface RoutedTripDepartures extends ManagedIdEntities<RoutedTripDeparture>
A container class for departures registered on a schedule based routed trip- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
allDepartEarlierBy(LocalTime departureTimeIncrease)
Make all departures of the routed trip departure depart later by the given amountvoid
allDepartLaterBy(LocalTime departureTimeIncrease)
Make all departures of the routed trip departure depart later by the given amountRoutedTripDepartures
deepClone()
Deep clone implementationRoutedTripDepartureFactory
getFactory()
Factory to create instance of managed id entity (for this container class)RoutedTripDepartures
shallowClone()
Shallow clone implementationdefault Stream<RoutedTripDeparture>
streamAscDepartureTime()
stream over departures but by ascending departure time rather than the underlying ids, which might not be in the temporal departure time order-
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, deepCloneWithMapping, 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
-
shallowClone
RoutedTripDepartures shallowClone()
Shallow clone implementation- Specified by:
shallowClone
in interfaceManagedIdEntities<RoutedTripDeparture>
- Specified by:
shallowClone
in interfaceMapWrapper<Long,RoutedTripDeparture>
- Returns:
- clone of entities
-
deepClone
RoutedTripDepartures deepClone()
Deep clone implementation- Specified by:
deepClone
in interfaceManagedIdEntities<RoutedTripDeparture>
- Returns:
- deep copy of entities
-
getFactory
RoutedTripDepartureFactory getFactory()
Factory to create instance of managed id entity (for this container class)- Specified by:
getFactory
in interfaceManagedIdEntities<RoutedTripDeparture>
- Returns:
- entity factory
-
allDepartLaterBy
void allDepartLaterBy(LocalTime departureTimeIncrease)
Make all departures of the routed trip departure depart later by the given amount- Parameters:
departureTimeIncrease
- to apply
-
allDepartEarlierBy
void allDepartEarlierBy(LocalTime departureTimeIncrease)
Make all departures of the routed trip departure depart later by the given amount- Parameters:
departureTimeIncrease
- to apply
-
streamAscDepartureTime
default Stream<RoutedTripDeparture> streamAscDepartureTime()
stream over departures but by ascending departure time rather than the underlying ids, which might not be in the temporal departure time order- Returns:
- departure time stream in acending departure time order
-
-