|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<java.lang.Integer>
net.sf.magicproject.tools.IntegerList
public class IntegerList
| Constructor Summary | |
|---|---|
IntegerList()
Create a new instance of this class. |
|
| Method Summary | |
|---|---|
void |
addInt(int value)
Appends the specified element to the end of this list. |
void |
addInt(int index,
int value)
Inserts the specified element at the specified position in this list. |
IntegerList |
clone()
Returns a shallow copy of this ArrayList instance. |
int |
getFirstInt()
Return the first int of the list. |
int |
getInt(int index)
Returns the element at the specified position in this list. |
int |
getLastInt()
Return the last int of the list. |
int |
removeFirstInt()
Removes the element at the first position in this list. |
int |
removeInt(int index)
Removes the element at the specified position in this list. |
int |
removeLastInt()
Removes the element at the last position in this list. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public IntegerList()
| Method Detail |
|---|
public IntegerList clone()
clone in class java.util.ArrayList<java.lang.Integer>public int getLastInt()
public int getFirstInt()
public int getInt(int index)
index - index of element to return.
public void addInt(int value)
value - element to be appended to this list.
public void addInt(int index,
int value)
index - index at which the specified element is to be inserted.value - element to be inserted.public int removeLastInt()
public int removeFirstInt()
public int removeInt(int index)
index - the index of the element to removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||