Class IndexFilter.ArrayTracker
java.lang.Object
org.apache.commons.collections4.bloomfilter.IndexFilter.ArrayTracker
- All Implemented Interfaces:
IntPredicate
- Enclosing class:
IndexFilter
An IndexTracker implementation that uses an array of integers to track whether or not a
number has been seen. Suitable for Shapes that have few hash functions.
- Since:
- 4.5.0
-
Field Details
-
seen
private final int[] seen -
populated
private int populated
-
-
Constructor Details
-
ArrayTracker
ArrayTracker(Shape shape) Constructs the tracker based on the shape.- Parameters:
shape- the shape to build the tracker for.
-
-
Method Details
-
test
public boolean test(int number) - Specified by:
testin interfaceIntPredicate
-