1 16 package java.util; 17 18 21 public interface List extends Collection { 22 23 void add(int index, Object element); 24 25 boolean add(Object o); 26 27 boolean addAll(Collection c); 28 29 boolean addAll(int index, Collection c); 30 31 void clear(); 32 33 boolean contains(Object o); 34 35 boolean containsAll(Collection c); 36 37 boolean equals(Object o); 38 39 Object get(int index); 40 41 int hashCode(); 42 43 int indexOf(Object o); 44 45 boolean isEmpty(); 46 47 Iterator iterator(); 48 49 int lastIndexOf(Object o); 50 51 ListIterator listIterator(); 52 53 ListIterator listIterator(int from); 54 55 Object remove(int index); 56 57 boolean remove(Object o); 58 59 boolean removeAll(Collection c); 60 61 boolean retainAll(Collection c); 62 63 Object set(int index, Object element); 64 65 int size(); 66 67 Object [] toArray(); 68 69 } 70 | Popular Tags |