Lines Matching refs:list

61 		List list = new ArrayList();
62 list.add(new Integer(3));
63 list.add(new Integer(15));
64 list.add(new Integer(5));
65 list.add(new Integer(1));
66 list.add(new Integer(7));
68 Iterator i = list.iterator();
74 + " got: " + list.hashCode(), hashCode == list.hashCode());
81 SimpleList list = new SimpleList();
82 list.add(new Object());
83 list.add(new Object());
84 Iterator it = list.iterator();
95 List list = new ArrayList();
96 list.add(new Integer(3));
97 list.add(new Integer(15));
98 list.add(new Integer(5));
99 list.add(new Integer(1));
100 list.add(new Integer(7));
101 ListIterator lit = list.listIterator();
116 list = new MockArrayList();
117 ListIterator it = list.listIterator();
120 assertEquals(2,list.size());
214 ArrayList<E> list = new ArrayList<E>();
218 return list.remove(idx);
223 return list.get(index);
228 return list.size();
233 list.add(idx, o);
242 t.list.add("a");
243 t.list.add("b");
438 AbstractList<Integer> list = new MockArrayList<Integer>();
440 list.addAll(Arrays.asList(array));
442 assertEquals("find 0 in the list do not contain 0", -1, list
444 assertEquals("did not return the right location of element 3", 2, list
446 assertEquals("find null in the list do not contain null element", -1,
447 list.indexOf(null));
448 list.add(null);
450 list.indexOf(null));
457 AbstractList<Integer> list = new MockArrayList<Integer>();
459 list.addAll(Arrays.asList(array));
461 assertEquals("find 6 in the list do not contain 6", -1, list
463 assertEquals("did not return the right location of element 4", 6, list
465 assertEquals("find null in the list do not contain null element", -1,
466 list.lastIndexOf(null));
467 list.add(null);
469 list.lastIndexOf(null));
478 private ArrayList<E> list;
482 return list.get(location);
487 return list.size();
491 AbstractList<Integer> list = new MockList<Integer>();
493 list.remove(0);
500 list.set(0, null);