/libcore/luni/src/main/java/java/util/ |
H A D | Iterator.java | 24 * methods {@code next} and {@code hasNext()} may throw a {@code ConcurrentModificationException}. 38 * @see #next 43 * Returns the next object and advances the iterator. 45 * @return the next object. 50 public E next(); method in interface:Iterator 53 * Removes the last object returned by {@code next} from the collection. 54 * This method can only be called once between each call to {@code next}. 60 * if {@code next} has not been called, or {@code remove} has 61 * already been called after the last call to {@code next}.
|
H A D | Random.java | 96 protected synchronized int next(int bits) { method in class:Random 105 return next(1) != 0; 130 return ((((long) next(26) << 27) + next(27)) / (double) (1L << 53)); 138 return (next(24) / 16777216f); 173 return next(32); 185 return (int) ((n * (long) next(31)) >> 31); 189 bits = next(31); 199 return ((long) next(32) << 32) + next(3 [all...] |
H A D | AbstractSet.java | 79 Object next = it.next(); 80 result += next == null ? 0 : next.hashCode(); 102 if (collection.contains(it.next())) { 110 result = remove(it.next()) || result;
|
H A D | AbstractCollection.java | 76 if (add(it.next())) { 102 it.next(); 130 if (object.equals(it.next())) { 136 if (it.next() == null) { 167 if (!contains(it.next())) { 228 if (object.equals(it.next())) { 235 if (it.next() == null) { 277 if (collection.contains(it.next())) { 318 if (!collection.contains(it.next())) { 372 Object next [all...] |
H A D | LinkedList.java | 51 Link<ET> previous, next; field in class:LinkedList.Link 56 next = n; 77 link = link.next; 91 Link<ET> next = link.next; 92 Link<ET> newLink = new Link<ET>(object, link, next); 93 link.next = newLink; 94 next.previous = newLink; 107 return link.next != list.voidLink; 114 public ET next() { method in class:LinkedList.LinkIterator 208 public ET next() { method in class:LinkedList.ReverseLinkIterator [all...] |
H A D | AbstractSequentialList.java | 44 int next = it.nextIndex(); 46 it.add(colIt.next()); 48 return next != it.nextIndex(); 54 return listIterator(location).next(); 72 E result = it.next(); 86 E result = it.next();
|
H A D | ListResourceBundle.java | 63 String next = pEnum.nextElement(); 64 if (!table.containsKey(next)) { 65 nextElement = next; 81 return local.next(); 101 return it.next();
|
H A D | Date.java | 394 char next = offset < length ? string.charAt(offset) : '\r'; 397 if (next == '(') { 401 if (next == ')') { 405 next = ' '; 412 if ('a' <= next && next <= 'z' || 'A' <= next && next <= 'Z') { 414 } else if ('0' <= next && next < [all...] |
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
H A D | AtomicInteger.java | 133 int next = current + 1; 134 if (compareAndSet(current, next)) 147 int next = current - 1; 148 if (compareAndSet(current, next)) 162 int next = current + delta; 163 if (compareAndSet(current, next)) 176 int next = current + 1; 177 if (compareAndSet(current, next)) 178 return next; 190 int next [all...] |
H A D | AtomicLong.java | 147 long next = current + 1; 148 if (compareAndSet(current, next)) 161 long next = current - 1; 162 if (compareAndSet(current, next)) 176 long next = current + delta; 177 if (compareAndSet(current, next)) 190 long next = current + 1; 191 if (compareAndSet(current, next)) 192 return next; 204 long next [all...] |
/libcore/luni/src/test/java/libcore/xml/ |
H A D | PullParserDtdTest.java | 41 while (parser.next() != XmlPullParser.END_DOCUMENT) { 64 assertEquals(XmlPullParser.START_TAG, parser.next()); 65 assertEquals(XmlPullParser.TEXT, parser.next()); 67 assertEquals(XmlPullParser.END_TAG, parser.next()); 68 assertEquals(XmlPullParser.END_DOCUMENT, parser.next()); 76 assertEquals(XmlPullParser.START_TAG, parser.next()); 77 assertEquals(XmlPullParser.TEXT, parser.next()); 79 assertEquals(XmlPullParser.END_TAG, parser.next()); 80 assertEquals(XmlPullParser.END_DOCUMENT, parser.next()); 86 assertEquals(XmlPullParser.START_TAG, parser.next()); [all...] |
H A D | PullParserTest.java | 31 assertEquals(XmlPullParser.START_TAG, parser.next()); 41 assertEquals(XmlPullParser.START_TAG, parser.next()); 51 assertEquals(XmlPullParser.START_TAG, parser.next()); 55 assertEquals(XmlPullParser.TEXT, parser.next()); 77 assertEquals(XmlPullParser.START_TAG, parser.next()); 80 assertEquals(XmlPullParser.START_TAG, parser.next()); 83 assertEquals(XmlPullParser.END_TAG, parser.next()); 86 assertEquals(XmlPullParser.END_TAG, parser.next()); 94 assertEquals(XmlPullParser.START_TAG, parser.next()); 119 assertEquals(XmlPullParser.START_TAG, parser.next()); [all...] |
/libcore/luni/src/main/java/java/lang/ref/ |
H A D | FinalizerReference.java | 35 private FinalizerReference<?> next; field in class:FinalizerReference 57 reference.next = head; 67 FinalizerReference<?> next = reference.next; 69 reference.next = null; 72 prev.next = next; 74 head = next; 76 if (next != null) { 77 next [all...] |
/libcore/luni/src/main/java/libcore/util/ |
H A D | CollectionUtils.java | 43 private T next; 47 while (next == null && delegate.hasNext()) { 48 next = delegate.next().get(); 49 if (trim && next == null) { 57 return next != null; 60 @Override public T next() { 64 T result = next; 66 next = null;
|
/libcore/json/src/test/java/org/json/ |
H A D | JSONTokenerTest.java | 38 new JSONTokener(null).next(); 44 new JSONTokener(null).next(3); 50 new JSONTokener(null).next('A'); 108 assertEquals('\0', new JSONTokener("").next()); 110 new JSONTokener("").next(3); 115 new JSONTokener("").next('A'); 141 assertEquals('A', abcdeTokener.next()); 142 assertEquals('B', abcdeTokener.next('B')); 143 assertEquals("CD", abcdeTokener.next(2)); 145 abcdeTokener.next( [all...] |
/libcore/luni/src/main/java/java/text/ |
H A D | CharacterIterator.java | 90 * @return the character at the next index, or {@code DONE} if the next 93 public char next(); method in interface:CharacterIterator
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | OldLinkedHashMapTest.java | 36 String id = (String) iterator.next(); 39 iterator.next(); 41 // iterator.next() Operation takes place after a get 52 id = (String) iterator.next(); 54 iterator.next();
|
H A D | ServiceLoaderTest.java | 35 assertTrue(it.next() instanceof Impl1); 37 assertTrue(it.next() instanceof Impl2); 44 ServiceLoader.load(ServiceLoaderTestInterfaceMissingClass.class).iterator().next(); 55 ServiceLoader.load(ServiceLoaderTestInterfaceWrongType.class).iterator().next(); 65 ServiceLoader.load(ServiceLoaderTestInterfaceParseError.class).iterator().next();
|
H A D | OldListIteratorTest.java | 39 l.next(); 46 assertTrue(objArray[i].equals(l.next())); 50 l.next(); 72 public Object next() { method in class:OldListIteratorTest.Mock_ListIterator 107 l.next(); 131 l.next(); 144 l.next(); 162 l.next(); 169 l.next(); 182 l.next(); [all...] |
/libcore/luni/src/main/java/java/io/ |
H A D | SerializationHandleMap.java | 71 * Returns the index where the key is found at, or the index of the next 81 * Found the key, or the next empty spot (which means key is not 126 int index, next, hash; 129 index = next = findIndex(key, keys); 142 next = (next + 2) % length; 143 object = keys[next]; 150 if (next < index) { 151 hashedOk = hashedOk || (hash <= next); 153 hashedOk = hashedOk && (hash <= next); [all...] |
/libcore/luni/src/main/java/java/sql/ |
H A D | SQLException.java | 35 * <li>The next exception in the chain.</li> 48 private SQLException next = null; field in class:SQLException 196 return next; 220 if (next != null) { 221 next.setNextException(ex); 223 next = ex; 247 public Throwable next() { method in class:SQLException.InternalIterator 252 current = current.next;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | StringCharacterIteratorTest.java | 129 sci1.next(); 131 sci0.next(); 167 fixture.next(); 181 fixture.next(); 192 assertEquals("Wrong next char", 't', it1.next()); 254 fixture.next(); 266 * @tests java.text.StringCharacterIterator.next() 271 assertEquals('i', fixture.next()); 273 assertEquals('x', fixture.next()); [all...] |
H A D | AttributedCharacterIteratorTest.java | 34 it.next(); 37 it.next(); 39 it.next(); 90 it.next(); 93 it.next(); 95 it.next(); 116 * @tests java.text.AttributedCharacterIterator#next() 122 assertEquals("Wrong first", 'e', it.next()); 124 it.next(); 125 assertEquals("Wrong last", 'g', it.next()); [all...] |
H A D | CollationElementIteratorTest.java | 50 iterator.next(); 60 int order = iterator.next(); 64 order = iterator.next(); 87 int order = iterator.next(); 91 order = iterator.next(); 112 int order = iterator.next(); 116 order = iterator.next(); 131 int order = iterator.next(); 134 order = iterator.next(); 142 int order = iterator.next(); [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | LinkedBlockingQueue.java | 84 * self-link implicitly means to advance to head.next. 96 * - this Node, meaning the successor is head.next 99 Node<E> next; field in class:LinkedBlockingQueue.Node 118 * Invariant: last.next == null 168 // assert last.next == null; 169 last = last.next = node; 181 Node<E> first = h.next; 182 h.next = h; // help GC 478 Node<E> first = head.next; 493 // p.next i 794 public E next() { method in class:LinkedBlockingQueue.Itr [all...] |