public class ValueWatcher extends java.lang.Object
|Constructor and Description|
Constructs a ValueWatcher which will look out for values in the range covered by
|Modifier and Type||Method and Description|
Returns a value in the range
Takes note of a value.
public ValueWatcher(long loBound, long hiBound)
hiBoundinclusive. These shouldn't be arbitrarily far apart - storage of up to about one bit per value in the range will be required.
loBound- lower bound to watch for (inclusive)
hiBound- upper bound to watch for (inclusive)
public void useValue(long val)
valwill never subsequently be returned from
val- value to note
public java.lang.Long getUnused()
loBound..hiBoundwhich has never been sumitted to
useValue(long). If there is no such value, returns null.