at.jku.ssw
Class List

java.lang.Object
  extended by at.jku.ssw.List
Direct Known Subclasses:
LinkedList

public abstract class List
extends java.lang.Object

A list of characters.


Constructor Summary
List()
           
 
Method Summary
abstract  void add(char value)
          Appends the value to the end of this list.
abstract  void add(int index, char value)
          Inserts the value at position index.
abstract  char get(int index)
          Returns the value at position index.
abstract  int indexOf(char value)
          Returns the index of the first occurrence of the value.
abstract  Iterator iterator()
          Returns an iterator of the values in this list.
abstract  char remove(int index)
          Removes the value at position index.
abstract  int size()
          Returns the number of values in this list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

List

public List()
Method Detail

add

public abstract void add(char value)
Appends the value to the end of this list.


add

public abstract void add(int index,
                         char value)
Inserts the value at position index.


get

public abstract char get(int index)
Returns the value at position index.


remove

public abstract char remove(int index)
Removes the value at position index.


indexOf

public abstract int indexOf(char value)
Returns the index of the first occurrence of the value.


size

public abstract int size()
Returns the number of values in this list.


iterator

public abstract Iterator iterator()
Returns an iterator of the values in this list.