org.inxar.syntacs.util
Interface IntList
- All Superinterfaces:
- Cloneable, IntArray
- All Known Implementing Classes:
- ArrayIntList
- public interface IntList
- extends IntArray
IntList
abstracts a dynamically-growable list of
integers.
Method Summary |
int |
add(int value)
Adds the given value to the end of the list and returns the
index number of the element that was written. |
boolean |
contains(int value)
Returns true if the given value is in
the list, false otherwise. |
IntIterator |
iterator()
Returns an iterator view over the list. |
add
public int add(int value)
- Adds the given value to the end of the list and returns the
index number of the element that was written.
iterator
public IntIterator iterator()
- Returns an iterator view over the list.
contains
public boolean contains(int value)
- Returns
true
if the given value
is in
the list, false
otherwise.