/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
H A D | CopyOnWriteArrayListTest.java | 50 * with the subList() documentation which suggests that only size-changing 56 List<String> bcd = list.subList(1, 4); 68 List<String> bcd = list.subList(1, 4); 80 List<String> bcd = list.subList(1, 4); 107 List<String> bcd = list.subList(1, 4); 115 new CopyOnWriteArrayList<String>().subList(0, 0).clear(); // the RI fails here 121 Iterator<String> bcd = list.subList(1, 4).iterator(); 132 List<String> bcd = list.subList(1, 4); 141 List<String> bcd = list.subList(1, 4); 150 List<String> def = list.subList( [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | AbstractListTest.java | 124 * java.util.AbstractList#subList(int, int) 133 List sList = mList.subList(0, 2); 165 al.subList(3, 7) instanceof RandomAccess); 173 !(ll.subList(3, 7) instanceof RandomAccess)); 178 * java.util.AbstractList#subList(int, int) 184 List emptySubList = al.subList(0, 0); 278 * java.util.AbstractList#subList(int, int) 285 List subList = mainList.subList(1, 2); 286 assertFalse("subList shoul [all...] |
H A D | ConcurrentModTest.java | 32 * Test method for 'java.util.AbstractList.subList(int, int)' 44 List sub = al.subList(1, 3); 53 // illegal call the subList's method get(int). 76 * Test method for 'java.util.AbstractList.subList(int, int)' 88 List sub = al.subList(1, 3); 97 // illegal call the subList's method set(int,Object). 106 * Test method for 'java.util.AbstractList.subList(int, int)' 118 List sub = al.subList(1, 3); 127 // illegal call the subList's method Add(int,Object). 136 * Test method for 'java.util.AbstractList.subList(in [all...] |
H A D | CollectionsTest.java | 962 List subList = list.subList(1, 5); 963 Collections.rotate(subList, -1); 968 Collections.rotate(subList, 2); 1083 sub = new ArrayList(src.subList(3, 11)); 1088 sub = new ArrayList(src.subList(6, 11)); 1093 sub = new ArrayList(src.subList(0, 3)); 1098 sub = new ArrayList(src.subList(9, 11)); 1103 sub = new ArrayList(src.subList(10, 11)); 1108 sub = new ArrayList(src.subList( [all...] |
H A D | ArrayListTest.java | 50 ArrayList subList = new ArrayList(); 52 subList.add(new Integer(i)); 53 new Support_ListTest("", subList.subList(50, 150)).runTest(); 1169 testElements = new ArrayList<Integer>(list.subList(8, 16)); 1170 list = list.subList(8, 16);
|
H A D | LinkedListTest.java | 66 LinkedList subList = new LinkedList(); 68 subList.add(new Integer(i)); 69 new Support_ListTest("", subList.subList(50, 150)).runTest();
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | CopyOnWriteArrayListTest.java | 495 assertTrue(a.subList(1,1).isEmpty()); 498 List b = a.subList(j,i); 505 List s = a.subList(2, 5); 534 List[] lists = { c, c.subList(1, c.size() - 1) }; 548 List[] lists = { c, c.subList(1, c.size() - 1) }; 562 List[] lists = { c, c.subList(1, c.size() - 1) }; 576 List[] lists = { c, c.subList(1, c.size() - 1) }; 590 List[] lists = { c, c.subList(1, c.size() - 1) }; 604 List[] lists = { c, c.subList(1, c.size() - 1) }; 618 List[] lists = { c, c.subList( [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | CollectionsTest.java | 825 keysInOrder.subList(0, i), 826 valuesInOrder.subList(0, i), 831 keysInOrder.subList(0, i), 832 valuesInOrder.subList(0, i), 837 keysInOrder.subList(0, i + 1), 838 valuesInOrder.subList(0, i + 1), 846 keysInOrder.subList(0, i), 847 valuesInOrder.subList(0, i), 854 keysInOrder.subList(i, numEntries), 855 valuesInOrder.subList( [all...] |
/libcore/luni/src/main/java/libcore/util/ |
H A D | CollectionUtils.java | 95 list.subList(j, list.size()).clear();
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | List.java | 707 * a list can be used as a range operation by passing a subList view 711 * list.subList(from, to).clear(); 715 * <tt>Collections</tt> class can be applied to a subList.<p> 723 * @param fromIndex low endpoint (inclusive) of the subList 724 * @param toIndex high endpoint (exclusive) of the subList 730 List<E> subList(int fromIndex, int toIndex); method in interface:List
|
H A D | AbstractList.java | 453 * offset of the subList within the backing list, the size of the subList 483 public List<E> subList(int fromIndex, int toIndex) { method in class:AbstractList 749 public List<E> subList(int fromIndex, int toIndex) { method in class:SubList 778 public List<E> subList(int fromIndex, int toIndex) { method in class:RandomAccessSubList
|
H A D | Collections.java | 779 * Collections.rotate(list.subList(j, k+1), -1); 785 * Collections.rotate(l.subList(1, 4), -1); 855 reverse(list.subList(0, mid)); 856 reverse(list.subList(mid, size)); 923 * such that {@code source.subList(i, i+target.size()).equals(target)}, 933 * @param target the list to search for as a subList of <tt>source</tt>. 976 * such that {@code source.subList(i, i+target.size()).equals(target)}, 986 * @param target the list to search for as a subList of <tt>source</tt>. 1407 public List<E> subList(int fromIndex, int toIndex) { method in class:Collections.UnmodifiableList 1408 return new UnmodifiableList<>(list.subList(fromInde 1440 public List<E> subList(int fromIndex, int toIndex) { method in class:Collections.UnmodifiableRandomAccessList 2492 public List<E> subList(int fromIndex, int toIndex) { method in class:Collections.SynchronizedList 2542 public List<E> subList(int fromIndex, int toIndex) { method in class:Collections.SynchronizedRandomAccessList 3520 public List<E> subList(int fromIndex, int toIndex) { method in class:Collections.CheckedList 3556 public List<E> subList(int fromIndex, int toIndex) { method in class:Collections.CheckedRandomAccessList 5100 public List<E> subList(int fromIndex, int toIndex) { method in class:Collections.CopiesList [all...] |
H A D | Vector.java | 1013 * a List can be used as a range operation by operating on a subList view 1017 * list.subList(from, to).clear(); 1021 * a subList. 1029 * @param fromIndex low endpoint (inclusive) of the subList 1030 * @param toIndex high endpoint (exclusive) of the subList 1037 public synchronized List<E> subList(int fromIndex, int toIndex) { method in class:Vector 1038 return Collections.synchronizedList(super.subList(fromIndex, toIndex),
|
H A D | ArrayList.java | 988 * a list can be used as a range operation by passing a subList view 992 * list.subList(from, to).clear(); 996 * {@link Collections} class can be applied to a subList. 1007 public List<E> subList(int fromIndex, int toIndex) { method in class:ArrayList 1237 public List<E> subList(int fromIndex, int toIndex) { method in class:ArrayList.SubList
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
H A D | StreamTestDataProvider.java | 105 (ints.length) <= 1 ? aList.subList(0, 0) : aList.subList(1, ints.length / 2)));
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
H A D | DoubleNodeTest.java | 118 tree(l.subList(0, l.size() / 2), m), 119 tree(l.subList(l.size() / 2, l.size()), m));
|
H A D | IntNodeTest.java | 118 tree(l.subList(0, l.size() / 2), m), 119 tree(l.subList(l.size() / 2, l.size()), m));
|
H A D | LongNodeTest.java | 118 tree(l.subList(0, l.size() / 2), m), 119 tree(l.subList(l.size() / 2, l.size()), m));
|
H A D | NodeTest.java | 95 tree(l.subList(0, l.size() / 2), m), 96 tree(l.subList(l.size() / 2, l.size()), m ));
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
H A D | StreamTestDataProvider.java | 111 (ints.length) <= 1 ? aList.subList(0, 0) : aList.subList(1, ints.length / 2)));
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_ListTest.java | 97 List<Integer> mySubList = list.subList(50, 53);
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
H A D | MethodHandles.java | 2860 MethodHandle d0 = dropArguments(cat, 0, bigType.parameterList().subList(0,2)); 3348 .equals(targetType.parameterList().subList(afterInsertPos, 3405 if (gpc >= tpc || !targs.subList(0, gpc).equals(gargs)) 3407 test = dropArguments(test, gpc, targs.subList(gpc, tpc)); 3474 hargs = hargs.subList(1, hargs.size()); // omit leading parameter from handler 3477 if (hpc >= tpc || !targs.subList(0, hpc).equals(hargs))
|
H A D | MethodType.java | 538 return res.insertParameterTypes(0, parameterList().subList(0, ptypes.length-1));
|
/libcore/ojluni/src/main/java/java/util/regex/ |
H A D | Pattern.java | 1154 return matchList.subList(0, resultSize).toArray(result);
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | CopyOnWriteArrayList.java | 1154 * @param fromIndex low endpoint (inclusive) of the subList 1155 * @param toIndex high endpoint (exclusive) of the subList 1159 public List<E> subList(int fromIndex, int toIndex) { method in class:CopyOnWriteArrayList 1299 public List<E> subList(int fromIndex, int toIndex) { method in class:CopyOnWriteArrayList.COWSubList
|