final class SortedIntSet
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SortedIntSet.FrozenIntSet |
| Modifier and Type | Field and Description |
|---|---|
(package private) int[] |
counts |
private int |
hashCode |
private java.util.Map<java.lang.Integer,java.lang.Integer> |
map |
(package private) int |
state |
private static int |
TREE_MAP_CUTOVER |
(package private) int |
upto |
private boolean |
useTreeMap |
(package private) int[] |
values |
| Constructor and Description |
|---|
SortedIntSet(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeHash() |
void |
decr(int num) |
boolean |
equals(java.lang.Object _other) |
SortedIntSet.FrozenIntSet |
freeze(int state) |
int |
hashCode() |
void |
incr(int num) |
java.lang.String |
toString() |
int[] values
int[] counts
int upto
private int hashCode
private static final int TREE_MAP_CUTOVER
private final java.util.Map<java.lang.Integer,java.lang.Integer> map
private boolean useTreeMap
int state
public void incr(int num)
public void decr(int num)
public void computeHash()
public SortedIntSet.FrozenIntSet freeze(int state)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object _other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object