|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.ethz.mxquery.util.IntegerList
public class IntegerList
| Constructor Summary | |
|---|---|
IntegerList()
|
|
IntegerList(int capacity)
|
|
| Method Summary | |
|---|---|
boolean |
add(int e)
Appends the supplied element to the end of this list. |
void |
add(int index,
int e)
Adds the supplied element at the specified index, shifting all elements currently at that index or higher one to the right. |
void |
addAll(int[] all)
|
void |
addAll(IntegerList all)
|
void |
clear()
Removes all elements from this List |
boolean |
contains(int e)
Returns true iff element is in this ArrayList. |
IntegerList |
copy()
Creates a shallow copy of this ArrayList (elements are not cloned). |
void |
ensureCapacity(int minCapacity)
Guarantees a minimum size |
int |
get(int index)
Retrieves the element at the user-supplied index. |
int |
indexOf(int e)
Returns the lowest index at which element appears in this List, or -1 if it does not appear. |
boolean |
isEmpty()
Checks if the list is empty. |
int |
lastIndexOf(int e)
Returns the highest index at which element appears in this List, or -1 if it does not appear. |
int |
remove(int index)
Removes the element at the user-supplied index. |
void |
remove(IntegerList e)
Removes the item positions in integerList from this list |
void |
removeRange(int fromIndex,
int toIndex)
Removes all elements in the half-open interval [fromIndex, toIndex). |
void |
removeValue(int value)
|
int |
set(int index,
int e)
|
int |
size()
Returns the number of elements in this list. |
int[] |
toArray()
Returns an Object array containing all of the elements in this ArrayList. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntegerList(int capacity)
public IntegerList()
| Method Detail |
|---|
public void ensureCapacity(int minCapacity)
public int size()
public boolean isEmpty()
public boolean contains(int e)
e - the element whose inclusion in the List is being tested
public int indexOf(int e)
e - the element whose inclusion in the List is being tested
public int lastIndexOf(int e)
e - the element whose inclusion in the List is being tested
public IntegerList copy()
public int[] toArray()
public void addAll(int[] all)
public void addAll(IntegerList all)
public int get(int index)
index - the index of the element we are fetching
java.lang.IndexOutOfBoundsException - if index < 0 || index >= size()
public int set(int index,
int e)
public void remove(IntegerList e)
e - public boolean add(int e)
e - the element to be appended to this list
public void add(int index,
int e)
index - the index at which the element is being addede - the item being added
java.lang.IndexOutOfBoundsException - if index < 0 || index > size()public int remove(int index)
index - the index of the element to be removed
java.lang.IndexOutOfBoundsException - if index < 0 || index >= size()public void clear()
public void removeRange(int fromIndex,
int toIndex)
fromIndex - the first index which will be removedtoIndex - one greater than the last index which will be removed
java.lang.IndexOutOfBoundsException - if fromIndex > toIndexpublic void removeValue(int value)
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||