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 Details

    • NetexEntityMapByIdImpl

      public NetexEntityMapByIdImpl()
  • Method Details

    • get

      public V get(String id)
      Description copied from interface: NetexEntityIndex
      Get an entity by its id
      Specified by:
      get in interface NetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>
      Parameters:
      id -
      Returns:
      The entity
    • getAll

      public Collection<V> getAll()
      Description copied from interface: NetexEntityIndex
      Get all entities in the index
      Specified by:
      getAll in interface NetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>
      Returns:
      A collection of the entity type
    • put

      public void put(String id, V entity)
      Description copied from interface: NetexEntityIndex
      Put an entity into the collection If the entity already exists in the index, all versions will be replaced.
      Specified by:
      put in interface NetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>
      Parameters:
      entity -
    • putAll

      public void putAll(Collection<V> entities)
      Description copied from interface: NetexEntityIndex
      Put all entities into the collection If an entity already exists in the index, all versions will be replaced.
      Specified by:
      putAll in interface NetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>
      Parameters:
      entities -
    • remove

      public void remove(String id)
      Description copied from interface: NetexEntityIndex
      Remove an entity from the index given its id
      Specified by:
      remove in interface NetexEntityIndex<V extends org.rutebanken.netex.model.EntityStructure>
      Parameters:
      id -
    • add

      public void add(V entity)