|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkorat.utils.IntList
korat.utils.IntListBS
public class IntListBS
Uses bitset to check if field is already contained.
| Field Summary | |
|---|---|
private BitSet |
bs
|
| Constructor Summary | |
|---|---|
IntListBS()
|
|
IntListBS(int initSize)
|
|
| Method Summary | |
|---|---|
boolean |
add(int arg0)
Adds an element to the end of IIntList. |
void |
clear()
Clears all elements from the list. |
boolean |
contains(int elem)
Returns whether list contains element elem |
int |
removeLast()
Removes last element from the IIntList. |
int |
set(int index,
int elem)
Sets i-th element of the list to value elem. |
| Methods inherited from class korat.utils.IntList |
|---|
get, isEmpty, numberOfElements, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private BitSet bs
| Constructor Detail |
|---|
public IntListBS()
public IntListBS(int initSize)
| Method Detail |
|---|
public boolean contains(int elem)
IIntListelem
contains in interface IIntListcontains in class IntListpublic boolean add(int arg0)
IIntList
add in interface IIntListadd in class IntListpublic int removeLast()
IIntList
removeLast in interface IIntListremoveLast in class IntListpublic void clear()
IIntList
clear in interface IIntListclear in class IntList
public int set(int index,
int elem)
IIntListelem. This
operation can be successfully carried out only if the index of the object
is smaller then the number of the elements in the list. Otherwise, the
results are unpredictable.
Number of elements in the list can be obtained by invoking
numberOfElements().
set in interface IIntListset in class IntList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||