public class Thresholds
extends java.util.TreeMap<java.lang.Integer,java.lang.Integer>
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
Thresholds() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(java.lang.Integer value)
Adds the given value to the "end" of the threshold map, that is, with the
greatest index/key.
|
protected java.lang.Integer |
getLastValue()
Returns the value for the greatest key in the map.
|
java.lang.Integer |
insert(java.lang.Integer j,
java.lang.Integer k)
Inserts the given values into the threshold map.
|
protected boolean |
isGreaterThan(java.lang.Integer index,
java.lang.Integer val)
Returns whether the value in the map for the given index is greater than
the given value.
|
protected boolean |
isLessThan(java.lang.Integer index,
java.lang.Integer val)
Returns whether the value in the map for the given index is less than
the given value.
|
protected static boolean |
isNonzero(java.lang.Integer i)
Returns whether the integer is not zero (including if it is not null).
|
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuespublic static final long serialVersionUID
protected static boolean isNonzero(java.lang.Integer i)
protected boolean isGreaterThan(java.lang.Integer index,
java.lang.Integer val)
protected boolean isLessThan(java.lang.Integer index,
java.lang.Integer val)
protected java.lang.Integer getLastValue()
protected void append(java.lang.Integer value)
public java.lang.Integer insert(java.lang.Integer j,
java.lang.Integer k)