/libcore/luni/src/test/java/libcore/java/text/ |
H A D | BreakIteratorTest.java | 58 BreakIterator it = BreakIterator.getWordInstance(Locale.US); 59 it.setText(new String(cs)); 73 BreakIterator it = BreakIterator.getWordInstance(Locale.US); 74 it.setText(s); 78 it.setText(s); 81 BreakIterator clone = (BreakIterator) it.clone(); 83 assertExpectedWordBoundaries(it, s); 87 private void assertExpectedWordBoundaries(BreakIterator it, String s) { argument 89 int pos = it.first(); 93 pos = it [all...] |
H A D | OldAttributedCharacterIteratorTest.java | 29 AttributedCharacterIterator it; field in class:OldAttributedCharacterIteratorTest 36 AttributedCharacterIterator it = as.getIterator(); 41 2, it.getRunLimit(attr)); 46 it = as.getIterator(); 48 4, it.getRunLimit(attr)); 52 4, it.getRunLimit(attr)); 57 AttributedCharacterIterator it = as.getIterator(); 59 it.getAllAttributeKeys(); 67 it = as.getIterator(); 69 it [all...] |
H A D | CollatorTest.java | 133 private void assertCollationElementIterator(CollationElementIterator it, Integer... offsets) { argument 135 assertEquals(offset, it.getOffset()); 136 it.next(); 138 assertEquals(CollationElementIterator.NULLORDER, it.next()); 148 CharacterIterator it = new StringCharacterIterator(s); 149 assertCollationElementIterator(coll.getCollationElementIterator(it), offsets);
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | AbstractCollection.java | 5 * This code is free software; you can redistribute it and/or modify it 11 * This code is distributed in the hope that it will be useful, but WITHOUT 99 Iterator<E> it = iterator(); 101 while (it.hasNext()) 102 if (it.next()==null) 105 while (it.hasNext()) 106 if (o.equals(it.next())) 137 Iterator<E> it = iterator(); 139 if (! it 221 finishToArray(T[] r, Iterator<?> it) argument [all...] |
H A D | Spliterators.java | 5 * This code is free software; you can redistribute it and/or modify it 11 * This code is distributed in the hope that it will be useful, but WITHOUT 128 * characteristics for the spliterator to report; it is common to 158 * characteristics for the spliterator to report; it is common to 193 * characteristics for the spliterator to report; it is common to 221 * characteristics for the spliterator to report; it is common to 255 * characteristics for the spliterator to report; it is common to 283 * characteristics for the spliterator to report. (For example, if it is 321 * characteristics for the spliterator to report; it i 1695 private Iterator<? extends T> it; field in class:Spliterators.IteratorSpliterator 1846 private PrimitiveIterator.OfInt it; field in class:Spliterators.IntIteratorSpliterator 1940 private PrimitiveIterator.OfLong it; field in class:Spliterators.LongIteratorSpliterator 2034 private PrimitiveIterator.OfDouble it; field in class:Spliterators.DoubleIteratorSpliterator [all...] |
H A D | TreeMap.java | 6 * This code is free software; you can redistribute it and/or modify it 12 * This code is distributed in the hope that it will be useful, but WITHOUT 55 * inconsistent with {@code equals}; it just fails to obey the general contract 60 * threads modifies the map structurally, it <em>must</em> be synchronized 82 * as it is, generally speaking, impossible to make any hard guarantees in the 85 * Therefore, it would be wrong to write a program that depended on this 92 * method. (Note however that it is possible to change mappings in the 118 * null if it uses the natural ordering of its keys. 263 * method returns {@code v}; otherwise it return 2533 buildFromSorted(int size, Iterator<?> it, java.io.ObjectInputStream str, V defaultVal) argument 2557 buildFromSorted(int level, int lo, int hi, int redLevel, Iterator<?> it, java.io.ObjectInputStream str, V defaultVal) argument [all...] |
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
H A D | DoubleNodeTest.java | 5 * This code is free software; you can redistribute it and/or modify it 9 * This code is distributed in the hope that it will be useful, but WITHOUT 98 private Node.OfDouble degenerateTree(PrimitiveIterator.OfDouble it) { argument 99 if (!it.hasNext()) { 103 double i = it.nextDouble(); 104 if (it.hasNext()) { 105 return new Nodes.ConcNode.OfDouble(Nodes.node(new double[] {i}), degenerateTree(it));
|
H A D | IntNodeTest.java | 5 * This code is free software; you can redistribute it and/or modify it 9 * This code is distributed in the hope that it will be useful, but WITHOUT 98 private Node.OfInt degenerateTree(PrimitiveIterator.OfInt it) { argument 99 if (!it.hasNext()) { 103 int i = it.nextInt(); 104 if (it.hasNext()) { 105 return new Nodes.ConcNode.OfInt(Nodes.node(new int[] {i}), degenerateTree(it));
|
H A D | LongNodeTest.java | 5 * This code is free software; you can redistribute it and/or modify it 9 * This code is distributed in the hope that it will be useful, but WITHOUT 98 private Node.OfLong degenerateTree(PrimitiveIterator.OfLong it) { argument 99 if (!it.hasNext()) { 103 long i = it.nextLong(); 104 if (it.hasNext()) { 105 return new Nodes.ConcNode.OfLong(Nodes.node(new long[] {i}), degenerateTree(it));
|
H A D | NodeTest.java | 5 * This code is free software; you can redistribute it and/or modify it 9 * This code is distributed in the hope that it will be useful, but WITHOUT 75 Node<Integer> degenerateTree(Iterator<Integer> it) { argument 76 if (!it.hasNext()) { 80 Integer i = it.next(); 81 if (it.hasNext()) { 82 return new Nodes.ConcNode<Integer>(Nodes.node(new Integer[] {i}), degenerateTree(it));
|
/libcore/luni/src/main/java/libcore/util/ |
H A D | ZoneInfoDB.java | 128 * Loads the data at the specified path and returns the {@link TzData} object if it is valid, 161 BufferIterator it = mappedFile.bigEndianIterator(); 162 it.skip(byteOffset); 163 return it; 202 BufferIterator it = mappedFile.bigEndianIterator(); 206 it.readByteArray(tzdata_version, 0, tzdata_version.length); 214 int index_offset = it.readInt(); 216 int data_offset = it.readInt(); 218 int zonetab_offset = it.readInt(); 227 readIndex(it, index_offse 240 readZoneTab(BufferIterator it, int zoneTabOffset, int zoneTabSize) argument 247 readIndex(BufferIterator it, int indexOffset, int dataOffset) argument [all...] |
H A D | ZoneInfo.java | 45 * and storing it a representation to support the {@link TimeZone} and {@link GregorianCalendar} 51 * <p>This class does not use all the information from the {@code tzfile}; it uses: 53 * (described by {@code struct ttinfo}) it uses {@code tt_gmtoff} and {@code tt_isdst}. Note, that 55 * the same meaning as Java. The prose following the definition makes it clear that the {@code long} 59 * 69 years either side of the epoch (1st Jan 1970 00:00:00) that means that it cannot handle any 91 * using it for the lifetime of the instance does not match the contract of the 92 * {@link TimeZone#useDaylightTime()} method but it appears to be what the RI does and that 93 * method is not particularly useful when it comes to historical or future times as it does not 105 * <p>This should be final but is not because it ma 181 readTimeZone(String id, BufferIterator it, long currentTimeMillis) argument [all...] |
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | CopyOnWriteArrayList.java | 4 * This code is free software; you can redistribute it and/or modify it 10 * This code is distributed in the hope that it will be useful, but WITHOUT 315 * <p>The returned array will be "safe" in that no references to it are 333 * in the specified array, it is returned therein. Otherwise, a new 359 * be stored, if it is big enough; otherwise, a new array of the 498 * if it is present. If this list does not contain the element, it is 893 * Saves this list to a stream (that is, serializes it). 916 * Reconstitutes this list from a stream (that is, deserializes it) 1484 private final ListIterator<E> it; field in class:CopyOnWriteArrayList.COWSubListIterator [all...] |
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
H A D | LambdaTestHelpers.java | 5 * This code is free software; you can redistribute it and/or modify it 9 * This code is distributed in the hope that it will be useful, but WITHOUT 55 public static final String LONG_STRING = "When in the Course of human events it becomes necessary for one people to dissolve the political bands which have connected them with another and to assume among the powers of the earth, the separate and equal station to which the Laws of Nature and of Nature's God entitle them, a decent respect to the opinions of mankind requires that they should declare the causes which impel them to the separation."; 184 public static void assertCountSum(Stream<? super Integer> it, int count, int sum) { argument 185 assertCountSum(it.iterator(), count, sum); 188 public static void assertCountSum(Iterable<? super Integer> it, int count, int sum) { argument 189 assertCountSum(it.iterator(), count, sum); 192 public static void assertCountSum(Iterator<? super Integer> it, int count, int sum) { argument 195 while (it 205 assertConcat(Iterator<Character> it, String result) argument 333 toBoxedList(Iterator<T> it) argument 360 toBoxedMultiset(Iterator<T> it) argument 374 toBoxedMultiset(Spliterator<T> it) argument [all...] |
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
H A D | LambdaTestHelpers.java | 5 * This code is free software; you can redistribute it and/or modify it 9 * This code is distributed in the hope that it will be useful, but WITHOUT 56 public static final String LONG_STRING = "When in the Course of human events it becomes necessary for one people to dissolve the political bands which have connected them with another and to assume among the powers of the earth, the separate and equal station to which the Laws of Nature and of Nature's God entitle them, a decent respect to the opinions of mankind requires that they should declare the causes which impel them to the separation."; 185 public static void assertCountSum(Stream<? super Integer> it, int count, int sum) { argument 186 assertCountSum(it.iterator(), count, sum); 189 public static void assertCountSum(Iterable<? super Integer> it, int count, int sum) { argument 190 assertCountSum(it.iterator(), count, sum); 193 public static void assertCountSum(Iterator<? super Integer> it, int count, int sum) { argument 196 while (it 206 assertConcat(Iterator<Character> it, String result) argument 334 toBoxedList(Iterator<T> it) argument 361 toBoxedMultiset(Iterator<T> it) argument 375 toBoxedMultiset(Spliterator<T> it) argument [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | JSR166TestCase.java | 225 // But let's cap it at the high end too ... 286 // Never report first run of any test; treat it as a 621 * Records an exception so that it can be rethrown later in the test 814 * then rethrows the exception, wrapping it in an 1330 * the thread (in the hope that it may terminate later) and fails. 1348 * the thread (in the hope that it may terminate later) and fails. 1853 public void assertIteratorExhausted(Iterator<?> it) { argument 1855 it.next(); 1858 assertFalse(it.hasNext());
|