Package org.entur.netex.index.api
Interface VersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>
-
- Type Parameters:
V-
- All Known Implementing Classes:
VersionedNetexEntityIndexImpl
public interface VersionedNetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>An index of versioned NeTEx entities
-
-
Method Summary
All Methods Instance Methods Abstract 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
V getLatestVersion(String id)
Return the element with the latest version with the givenid. Returnsnullif no element is found.
-
getVersion
V getVersion(String id, String version)
Return the element with the givenidandversion. Returnsnullif no element is found- Parameters:
id-version-- Returns:
-
getLatestVersions
Collection<V> getLatestVersions()
Return the latest version of all entities- Returns:
-
getAllVersions
Collection<V> getAllVersions(String id)
Lookup all versions of element with the givenid.- Returns:
- an empty collection if no elements are found.
-
getAllVersions
Map<String,Collection<V>> getAllVersions()
Get all versions of all entities- Returns:
-
putAll
void putAll(Collection<V> entities)
Put all entities into the collection- Parameters:
entities-
-
-