Package org.goplanit.utils.zoning
Interface OdZones
-
- All Superinterfaces:
Iterable<OdZone>,LongMapWrapper<OdZone>,ManagedIdEntities<OdZone>,MapWrapper<Long,OdZone>,Zones<OdZone>
- All Known Implementing Classes:
OdZonesImpl
public interface OdZones extends Zones<OdZone>
Container class for OdZones- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description OdZonesdeepClone()Deep clone implementationOdZonesdeepCloneWithMapping(BiConsumer<OdZone,OdZone> mapper)Deep clone implementation where the mapping for its internal copies is captured by the provided mapperdefault voidforEachOriginDestination(BiConsumer<OdZone,OdZone> consumer)Loop over all origin destination combinations possible given the registered zones and apply the provided consumerOdZoneFactorygetFactory()Factory to create instance of managed id entity (for this container class)OdZonesshallowClone()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
-
Methods inherited from interface org.goplanit.utils.zoning.Zones
getByXmlId, getNumberOfCentroids
-
-
-
-
Method Detail
-
getFactory
OdZoneFactory getFactory()
Factory to create instance of managed id entity (for this container class)- Specified by:
getFactoryin interfaceManagedIdEntities<OdZone>- Returns:
- entity factory
-
shallowClone
OdZones shallowClone()
Shallow clone implementation- Specified by:
shallowClonein interfaceManagedIdEntities<OdZone>- Specified by:
shallowClonein interfaceMapWrapper<Long,OdZone>- Specified by:
shallowClonein interfaceZones<OdZone>- Returns:
- clone of entities
-
deepClone
OdZones deepClone()
Deep clone implementation
-
deepCloneWithMapping
OdZones deepCloneWithMapping(BiConsumer<OdZone,OdZone> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapper- Specified by:
deepCloneWithMappingin interfaceManagedIdEntities<OdZone>- Specified by:
deepCloneWithMappingin interfaceZones<OdZone>- Parameters:
mapper- to apply to each mapping between original and copy- Returns:
- copy
-
forEachOriginDestination
default void forEachOriginDestination(BiConsumer<OdZone,OdZone> consumer)
Loop over all origin destination combinations possible given the registered zones and apply the provided consumer- Parameters:
consumer- to apply to each od
-
-