public class NetexEntityMapByIdImpl<V extends org.rutebanken.netex.model.EntityStructure> extends Object implements NetexEntityIndex<V>
| Constructor and Description |
|---|
NetexEntityMapByIdImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(V entity) |
V |
get(String id)
Get an entity by its id
|
Collection<V> |
getAll()
Get all entities in the index
|
void |
put(String id,
V entity)
Put an entity into the collection
If the entity already exists in the index, all versions
will be replaced.
|
void |
putAll(Collection<V> entities)
Put all entities into the collection
If an entity already exists in the index, all versions
will be replaced.
|
void |
remove(String id)
Remove an entity from the index given its id
|
public V get(String id)
NetexEntityIndexget in interface NetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>public Collection<V> getAll()
NetexEntityIndexgetAll in interface NetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>public void put(String id, V entity)
NetexEntityIndexput in interface NetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>public void putAll(Collection<V> entities)
NetexEntityIndexputAll in interface NetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>public void remove(String id)
NetexEntityIndexremove in interface NetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>public void add(V entity)
Copyright © 2023 Entur AS. All rights reserved.