|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface List<AnyType>
List interface. The version in java.util places the union of sensible LinkedList and ArrayList methods in this interface. We place the useful intersection here instead, which is arguably empty.
Method Summary | |
---|---|
AnyType |
get(int idx)
Returns the item at position idx. |
ListIterator<AnyType> |
listIterator(int pos)
Obtains a ListIterator object used to traverse the collection bidirectionally. |
AnyType |
set(int idx,
AnyType newVal)
Changes the item at position idx. |
Methods inherited from interface weiss.util.Collection |
---|
add, clear, contains, isEmpty, iterator, remove, size, toArray, toArray |
Method Detail |
---|
AnyType get(int idx)
idx
- the index to search in.
java.lang.IndexOutOfBoundsException
- if index is out of range.AnyType set(int idx, AnyType newVal)
idx
- the index to change.newVal
- the new value.
java.lang.IndexOutOfBoundsException
- if index is out of range.ListIterator<AnyType> listIterator(int pos)
pos
- the index to start the iterator. Use size() to do complete
reverse traversal. Use 0 to do complete forward traversal.
java.lang.IndexOutOfBoundsException
- if idx is not between 0 and size(), inclusive.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |