Class LongListHashIndex

Object
LongListHashIndex

public class LongListHashIndex extends Object
todo why don't we add this to ArrayForest? We could have a method indexOfCached() which would consult the cache; todo | the cache would be invalidated on any forest update; also could be "smart" (invalidate only indices after the point of change) todo Or: merge with IndexedForest
Author:
Igor Sereda
  • Constructor Details

    • LongListHashIndex

      public LongListHashIndex(LongList list)
    • LongListHashIndex

      public LongListHashIndex(Map<Long,Integer> map)
  • Method Details

    • indexOf

      public int indexOf(long value)
    • size

      public int size()