KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > persistence > antlr > collections > List


1 package persistence.antlr.collections;
2
3 /* ANTLR Translator Generator
4  * Project led by Terence Parr at http://www.jGuru.com
5  * Software rights: http://www.antlr.org/license.html
6  *
7  */

8
9 import java.util.Enumeration JavaDoc;
10 import java.util.NoSuchElementException JavaDoc;
11
12 /**A simple List interface that describes operations
13  * on a list.
14  */

15 public interface List {
16     public void add(Object JavaDoc o); // can insert at head or append.
17

18     public void append(Object JavaDoc o);
19
20     public Object JavaDoc elementAt(int index) throws NoSuchElementException JavaDoc;
21
22     public Enumeration JavaDoc elements();
23
24     public boolean includes(Object JavaDoc o);
25
26     public int length();
27 }
28
Popular Tags