Package org.entur.netex.index.api
Interface NetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>
- Type Parameters:
V-
- All Known Implementing Classes:
NetexEntityMapByIdImpl
public interface NetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>
A simple index of NeTEx entities of a specific type
-
Method Summary
Modifier and TypeMethodDescriptionGet an entity by its idgetAll()Get all entities in the indexvoidPut an entity into the collection If the entity already exists in the index, all versions will be replaced.voidputAll(Collection<V> entities) Put all entities into the collection If an entity already exists in the index, all versions will be replaced.voidRemove an entity from the index given its id
-
Method Details
-
get
Get an entity by its id- Parameters:
id-- Returns:
- The entity
-
getAll
Collection<V> getAll()Get all entities in the index- Returns:
- A collection of the entity type
-
put
Put an entity into the collection If the entity already exists in the index, all versions will be replaced.- Parameters:
entity-
-
putAll
Put all entities into the collection If an entity already exists in the index, all versions will be replaced.- Parameters:
entities-
-
remove
Remove an entity from the index given its id- Parameters:
id-
-