public class VersionedNetexEntityIndexImpl<V extends org.rutebanken.netex.model.EntityInVersionStructure> extends Object implements VersionedNetexEntityIndex<V>
| Constructor and Description |
|---|
VersionedNetexEntityIndexImpl() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Collection<V>> |
getAllVersions()
Get all versions of all entities
|
Collection<V> |
getAllVersions(String id)
Lookup all versions of element with the given
id. |
V |
getLatestVersion(String id)
Return the element with the latest version with the given
id. |
V |
getVersion(String id,
String version)
Return the element with the given
id and version. |
void |
putAll(Collection<V> entities)
Put all entities into the collection
|
public V getLatestVersion(String id)
VersionedNetexEntityIndexid. Returns
null if no element is found.getLatestVersion in interface VersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>public V getVersion(String id, String version)
VersionedNetexEntityIndexid and version. Returns
null if no element is foundgetVersion in interface VersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>public Collection<V> getAllVersions(String id)
VersionedNetexEntityIndexid.getAllVersions in interface VersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>public Map<String,Collection<V>> getAllVersions()
VersionedNetexEntityIndexgetAllVersions in interface VersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>public void putAll(Collection<V> entities)
VersionedNetexEntityIndexputAll in interface VersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>Copyright © 2021 Entur AS. All rights reserved.