Class AbstractMapProvider<K,​V>

  • Type Parameters:
    K -
    V -
    All Implemented Interfaces:
    IMapProvider<K,​V>
    Direct Known Subclasses:
    PersistentStringIndexMapProvider

    public abstract class AbstractMapProvider<K,​V>
    extends Object
    implements IMapProvider<K,​V>

    Base class for resources that map one term to another. Uses a HashMap.^

    This class is abstract because it is generic. To work with other data types than strings, the getKey(String) and getValue(String) methods are overridden by subclasses to deliver the correct data types from the string input.

    Subclasses deal with maps where the keys and/or values are not strings but numbers. Other subclasses deal with String but use a persistent data structure to deal with very large maps.

    • Field Detail

      • log

        protected final org.slf4j.Logger log
      • reverse

        protected boolean reverse
      • map

        protected Map<K,​V> map
    • Constructor Detail

      • AbstractMapProvider

        public AbstractMapProvider​(org.slf4j.Logger log)