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 OdZones
deepClone()
Deep clone implementationOdZones
deepCloneWithMapping(BiConsumer<OdZone,OdZone> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapperdefault void
forEachOriginDestination(BiConsumer<OdZone,OdZone> consumer)
Loop over all origin destination combinations possible given the registered zones and apply the provided consumerOdZoneFactory
getFactory()
Factory to create instance of managed id entity (for this container class)OdZones
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
-
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:
getFactory
in interfaceManagedIdEntities<OdZone>
- Returns:
- entity factory
-
shallowClone
OdZones shallowClone()
Shallow clone implementation- Specified by:
shallowClone
in interfaceManagedIdEntities<OdZone>
- Specified by:
shallowClone
in interfaceMapWrapper<Long,OdZone>
- Specified by:
shallowClone
in 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:
deepCloneWithMapping
in interfaceManagedIdEntities<OdZone>
- Specified by:
deepCloneWithMapping
in 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
-
-