Class IndexFilter.BitMapTracker

java.lang.Object
org.apache.commons.collections4.bloomfilter.IndexFilter.BitMapTracker
All Implemented Interfaces:
IntPredicate
Enclosing class:
IndexFilter

static class IndexFilter.BitMapTracker extends Object implements IntPredicate
An IndexTracker implementation that uses an array of bit maps to track whether or not a number has been seen.
  • Field Details

    • bits

      private final long[] bits
  • Constructor Details

    • BitMapTracker

      BitMapTracker(Shape shape)
      Constructs a bit map based tracker for the specified shape.
      Parameters:
      shape - The shape that is being generated.
  • Method Details

    • test

      public boolean test(int number)
      Specified by:
      test in interface IntPredicate