Package com.qfs.dic

Interface IWritableDictionary.IIntegerDictionary

All Superinterfaces:
ICompressible, IDictionary<Integer>, IMemoryMonitored, IWritableDictionary<Integer>, Serializable
All Known Implementing Classes:
BufferIntegerDictionary, ChristmasDictionaryInteger, IntegerDictionary
Enclosing interface:
IWritableDictionary<K>

public static interface IWritableDictionary.IIntegerDictionary extends IWritableDictionary<Integer>
Specialized dictionary interface for dictionaries of integers.

NOTE: Implementations of this interface should implement explicitly IWritableDictionary.mapInt(int), IDictionary.getIntPosition(int) and IDictionary.readInt(int) to properly work.

Author:
ActiveViam
  • Method Details

    • copyInto

      default void copyInto(int position, IWritableCell cell)
      Description copied from interface: IDictionary
      Copies the de-dictionarized value at a given position into the provided cell.
      Specified by:
      copyInto in interface IDictionary<Integer>
      Parameters:
      position - dictionarized value to read
      cell - cell filled with the corresponding value
    • mapFromCell

      default int mapFromCell(IReadableCell cell)
      Description copied from interface: IWritableDictionary
      Maps the value stored by a cell into this dictionary.
      Specified by:
      mapFromCell in interface IWritableDictionary<Integer>
      Parameters:
      cell - cell containing the value to map
      Returns:
      the dictionary position for the mapped value