Package com.qfs.dic

Interface IWritableDictionary.IFloatDictionary

All Superinterfaces:
ICompressible, IDictionary<Float>, IMemoryMonitored, IWritableDictionary<Float>, Serializable
All Known Implementing Classes:
ChristmasDictionaryFloat
Enclosing interface:
IWritableDictionary<K>

public static interface IWritableDictionary.IFloatDictionary extends IWritableDictionary<Float>
Specialized dictionary interface for dictionaries of Floats.

NOTE: Implementations of this interface should implement explicitly IWritableDictionary.mapFloat(float), IDictionary.getFloatPosition(float) and IDictionary.readFloat(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<Float>
      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<Float>
      Parameters:
      cell - cell containing the value to map
      Returns:
      the dictionary position for the mapped value