public class LongMemoizer
extends java.lang.Object
Set
and a
BitSet
for remembering values. Uses a BitSet
up to a threshold value, then uses a regular
Set
.Constructor and Description |
---|
LongMemoizer(int threshold) |
Modifier and Type | Method and Description |
---|---|
static boolean |
add(java.util.BitSet bitSet,
int index) |
boolean |
add(long l) |