Package org.entur.netex.index.impl
Class VersionedNetexEntityIndexImpl<V extends org.rutebanken.netex.model.EntityInVersionStructure>
- java.lang.Object
-
- org.entur.netex.index.impl.VersionedNetexEntityIndexImpl<V>
-
- All Implemented Interfaces:
VersionedNetexEntityIndex<V>
public class VersionedNetexEntityIndexImpl<V extends org.rutebanken.netex.model.EntityInVersionStructure> extends Object implements VersionedNetexEntityIndex<V>
-
-
Constructor Summary
Constructors Constructor Description VersionedNetexEntityIndexImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Collection<V>>getAllVersions()Get all versions of all entitiesCollection<V>getAllVersions(String id)Lookup all versions of element with the givenid.VgetLatestVersion(String id)Return the element with the latest version with the givenid.Collection<V>getLatestVersions()Return the latest version of all entitiesVgetVersion(String id, String version)Return the element with the givenidandversion.voidputAll(Collection<V> entities)Put all entities into the collection
-
-
-
Method Detail
-
getLatestVersion
public V getLatestVersion(String id)
Description copied from interface:VersionedNetexEntityIndexReturn the element with the latest version with the givenid. Returnsnullif no element is found.- Specified by:
getLatestVersionin interfaceVersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>
-
getVersion
public V getVersion(String id, String version)
Description copied from interface:VersionedNetexEntityIndexReturn the element with the givenidandversion. Returnsnullif no element is found- Specified by:
getVersionin interfaceVersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>- Returns:
-
getLatestVersions
public Collection<V> getLatestVersions()
Description copied from interface:VersionedNetexEntityIndexReturn the latest version of all entities- Specified by:
getLatestVersionsin interfaceVersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>- Returns:
-
getAllVersions
public Collection<V> getAllVersions(String id)
Description copied from interface:VersionedNetexEntityIndexLookup all versions of element with the givenid.- Specified by:
getAllVersionsin interfaceVersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>- Returns:
- an empty collection if no elements are found.
-
getAllVersions
public Map<String,Collection<V>> getAllVersions()
Description copied from interface:VersionedNetexEntityIndexGet all versions of all entities- Specified by:
getAllVersionsin interfaceVersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>- Returns:
-
putAll
public void putAll(Collection<V> entities)
Description copied from interface:VersionedNetexEntityIndexPut all entities into the collection- Specified by:
putAllin interfaceVersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>
-
-