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 Type
    Method
    Description
    get(String id)
    Get an entity by its id
    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 an entity from the index given its id
  • Method Details

    • get

      V get(String id)
      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

      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.
      Parameters:
      entity -
    • putAll

      void putAll(Collection<V> entities)
      Put all entities into the collection If an entity already exists in the index, all versions will be replaced.
      Parameters:
      entities -
    • remove

      void remove(String id)
      Remove an entity from the index given its id
      Parameters:
      id -