|
||||||||||
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)
IIntList
elem
contains
in interface IIntList
contains
in class IntList
public boolean add(int arg0)
IIntList
add
in interface IIntList
add
in class IntList
public int removeLast()
IIntList
removeLast
in interface IIntList
removeLast
in class IntList
public void clear()
IIntList
clear
in interface IIntList
clear
in class IntList
public int set(int index, int elem)
IIntList
elem
. 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 IIntList
set
in class IntList
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |