Searched refs:next (Results 1 - 25 of 230) sorted by relevance

12345678910

/libcore/luni/src/main/java/java/util/
H A DIterator.java24 * 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 DRandom.java89 protected synchronized int next(int bits) { method in class:Random
98 return next(1) != 0;
123 return ((((long) next(26) << 27) + next(27)) / (double) (1L << 53));
131 return (next(24) / 16777216f);
166 return next(32);
178 return (int) ((n * (long) next(31)) >> 31);
182 bits = next(31);
192 return ((long) next(32) << 32) + next(3
[all...]
H A DAbstractSet.java79 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 DAbstractCollection.java76 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 DLinkedList.java51 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 DAbstractSequentialList.java44 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 DListResourceBundle.java63 String next = pEnum.nextElement();
64 if (!table.containsKey(next)) {
65 nextElement = next;
81 return local.next();
101 return it.next();
H A DDate.java394 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...]
H A DListIterator.java28 * Inserts the specified object into the list between {@code next} and
46 * @see #next
60 * Returns the next object in the iteration.
62 * @return the next object.
67 public E next(); method in interface:ListIterator
70 * Returns the index of the next object in the iteration.
72 * @return the index of the next object, or the size of the list if the
76 * @see #next
102 * Removes the last object returned by {@code next} or {@code previous} from
108 * if {@code next} o
[all...]
/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicInteger.java133 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 DAtomicLong.java147 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 DPullParserDtdTest.java41 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 DPullParserTest.java31 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 DFinalizerReference.java35 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 DCollectionUtils.java43 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 DJSONTokenerTest.java38 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 DCharacterIterator.java90 * @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 DOldLinkedHashMapTest.java36 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 DServiceLoaderTest.java35 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 DOldListIteratorTest.java39 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 DSerializationHandleMap.java71 * 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 DSQLException.java35 * <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;
H A DSQLWarning.java126 * Gets the next {@code SQLWarning} chained to this {@code SQLWarning} object.
133 SQLException next = super.getNextException();
134 if (next == null) {
137 if (next instanceof SQLWarning) {
138 return (SQLWarning) next;
/libcore/luni/src/main/java/java/util/concurrent/
H A DLinkedBlockingQueue.java84 * 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...]
/libcore/luni/src/test/java/libcore/java/sql/
H A DOldResultSetTest.java68 target.next();
76 assertFalse(target.next());
93 assertTrue(target.next());
116 target.next();
147 while (rs2.next()){
158 while (rs1.next()) {
209 target.next();
225 assertTrue(target.next());
245 target.next();
271 assertFalse(emptyTarget.next());
[all...]

Completed in 454 milliseconds

12345678910