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 -
Method Summary
Modifier and TypeMethodDescriptionMap<String,Collection<V>> Get all versions of all entitiesgetAllVersions(String id) Lookup all versions of element with the givenid.Return the element with the latest version with the givenid.Return the latest version of all entitiesgetVersion(String id, String version) Return the element with the givenidandversion.voidput(String id, Collection<V> entities) Put all versions of an entity into the index.voidputAll(Collection<V> entities) Put all entities into the collection If an entity already exists in the index, all versions will be replaced.voidRemove all versions of an entity from the index given its id
-
Constructor Details
-
VersionedNetexEntityIndexImpl
public VersionedNetexEntityIndexImpl()
-
-
Method Details
-
getLatestVersion
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
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
Description copied from interface:VersionedNetexEntityIndexReturn the latest version of all entities- Specified by:
getLatestVersionsin interfaceVersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>- Returns:
-
getAllVersions
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
Description copied from interface:VersionedNetexEntityIndexGet all versions of all entities- Specified by:
getAllVersionsin interfaceVersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>- Returns:
-
put
Description copied from interface:VersionedNetexEntityIndexPut all versions of an entity into the index. If the entity already exists in the index, all versions will be replaced.- Specified by:
putin interfaceVersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>
-
putAll
Description copied from interface:VersionedNetexEntityIndexPut all entities into the collection If an entity already exists in the index, all versions will be replaced.- Specified by:
putAllin interfaceVersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>
-
remove
Description copied from interface:VersionedNetexEntityIndexRemove all versions of an entity from the index given its id- Specified by:
removein interfaceVersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityInVersionStructure>
-