|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oxygenxml.validate.nvdl.IntSet
class IntSet
Utility class. Stores a set of integers. The set is stored in an array and sorted.
| Field Summary | |
|---|---|
private static int |
INIT_SIZE
Initial size. |
private int |
len
The number of stored values. |
private int[] |
v
An int array with the values. |
| Constructor Summary | |
|---|---|
IntSet()
|
|
| Method Summary | |
|---|---|
(package private) void |
add(int n)
Add a new value. |
(package private) void |
addAll(IntSet is)
Adds all the values from another set - union. |
(package private) int |
get(int i)
Get the ith value from the set. |
(package private) int |
size()
Get the number of values in this set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int INIT_SIZE
private int[] v
private int len
| Constructor Detail |
|---|
IntSet()
| Method Detail |
|---|
void add(int n)
n - The value to be added.void addAll(IntSet is)
is - The other integer set.int size()
int get(int i)
i - The index in the set, zero based.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||