1 9 package j2me.util; 10 11 public interface List extends Collection { 12 int size(); 13 14 boolean isEmpty(); 15 16 boolean contains(Object o); 17 18 Iterator iterator(); 19 20 Object [] toArray(); 21 22 Object [] toArray(Object [] a); 23 24 boolean add(Object o); 25 26 boolean remove(Object o); 27 28 boolean containsAll(Collection c); 29 30 boolean addAll(Collection c); 31 32 boolean addAll(int index, Collection c); 33 34 boolean removeAll(Collection c); 35 36 boolean retainAll(Collection c); 37 38 void clear(); 39 40 boolean equals(Object o); 41 42 int hashCode(); 43 44 Object get(int index); 45 46 Object set(int index, Object element); 47 48 void add(int index, Object element); 49 50 Object remove(int index); 51 52 int indexOf(Object o); 53 54 int lastIndexOf(Object o); 55 56 ListIterator listIterator(); 57 58 ListIterator listIterator(int index); 59 60 List subList(int fromIndex, int toIndex); 61 } | Popular Tags |