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 Constructor Description NetexEntityMapByIdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(V entity)Vget(String id)Get an entity by its idCollection<V>getAll()Get all entities in the indexvoidputAll(Collection<V> entities)Put all entities into the collection
-
-
-
Method Detail
-
get
public V get(String id)
Description copied from interface:NetexEntityIndexGet an entity by its id- Specified by:
getin interfaceNetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>- Returns:
- The entity
-
getAll
public Collection<V> 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
-
putAll
public void putAll(Collection<V> entities)
Description copied from interface:NetexEntityIndexPut all entities into the collection- Specified by:
putAllin interfaceNetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>
-
add
public void add(V entity)
-
-