Class IndexFilter.BitMapTracker
java.lang.Object
org.apache.commons.collections4.bloomfilter.IndexFilter.BitMapTracker
- All Implemented Interfaces:
IntPredicate
- Enclosing class:
IndexFilter
An IndexTracker implementation that uses an array of bit maps to track whether or not a
number has been seen.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBitMapTracker(Shape shape) Constructs a bit map based tracker for the specified shape. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.IntPredicate
and, negate, or
-
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:
testin interfaceIntPredicate
-