Package org.entur.netex.index.impl
Class NetexEntityMapByIdImpl<V extends org.rutebanken.netex.model.EntityStructure>
java.lang.Object
org.entur.netex.index.impl.NetexEntityMapByIdImpl<V>
- All Implemented Interfaces:
NetexEntityIndex<V>
public class NetexEntityMapByIdImpl<V extends org.rutebanken.netex.model.EntityStructure>
extends Object
implements NetexEntityIndex<V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGet 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
-
Constructor Details
-
NetexEntityMapByIdImpl
public NetexEntityMapByIdImpl()
-
-
Method Details
-
get
Description copied from interface:NetexEntityIndexGet an entity by its id- Specified by:
getin interfaceNetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>- Parameters:
id-- Returns:
- The entity
-
getAll
Description copied from interface:NetexEntityIndexGet all entities in the index- Specified by:
getAllin interfaceNetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>- Returns:
- A collection of the entity type
-
put
Description copied from interface:NetexEntityIndexPut an entity into the collection If the entity already exists in the index, all versions will be replaced.- Specified by:
putin interfaceNetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>- Parameters:
entity-
-
putAll
Description copied from interface:NetexEntityIndexPut all entities into the collection If an entity already exists in the index, all versions will be replaced.- Specified by:
putAllin interfaceNetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>- Parameters:
entities-
-
remove
Description copied from interface:NetexEntityIndexRemove an entity from the index given its id- Specified by:
removein interfaceNetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>- Parameters:
id-
-
add
-