Searched defs:next (Results 1 - 25 of 79) sorted by relevance

1234

/libcore/ojluni/src/main/java/java/util/
H A DIterator.java57 * (In other words, returns {@code true} if {@link #next} would
65 * Returns the next element in the iteration.
67 * @return the next element in the iteration
70 E next(); method in interface:Iterator
75 * only once per call to {@link #next}. The behavior of an iterator
87 * @throws IllegalStateException if the {@code next} method has not
89 * been called after the last call to the {@code next}
106 * action.accept(next());
116 action.accept(next());
H A DListIterator.java36 * returned by a call to {@code next()}.
45 * operate on the last element returned by a call to {@link #next} or
66 * returns {@code true} if {@link #next} would return an element rather
75 * Returns the next element in the list and advances the cursor position.
78 * (Note that alternating calls to {@code next} and {@code previous}
81 * @return the next element in the list
82 * @throws NoSuchElementException if the iteration has no next element
84 E next(); method in interface:ListIterator
101 * {@link #next} to go back and forth. (Note that alternating calls
102 * to {@code next} an
[all...]
H A DPrimitiveIterator.java37 * <p>The specialized subtype default implementations of {@link Iterator#next}
44 * should be used in preference to {@link PrimitiveIterator.OfInt#next()} and
48 * {@link Iterator#next next()} and
89 * Returns the next {@code int} element in the iteration.
91 * @return the next {@code int} element in the iteration
125 default Integer next() { method in interface:PrimitiveIterator.OfInt
163 * Returns the next {@code long} element in the iteration.
165 * @return the next {@code long} element in the iteration
199 default Long next() { method in interface:PrimitiveIterator.OfLong
272 default Double next() { method in interface:PrimitiveIterator.OfDouble
[all...]
/libcore/ojluni/src/main/java/sun/misc/
H A DCompoundEnumeration.java43 private boolean next() { method in class:CompoundEnumeration
54 return next();
58 if (!next()) {
H A DCleaner.java75 next = null, field in class:Cleaner
80 cl.next = first;
90 if (cl.next == cl)
95 if (cl.next != null)
96 first = cl.next;
100 if (cl.next != null)
101 cl.next.prev = cl.prev;
103 cl.prev.next = cl.next;
106 cl.next
[all...]
H A DService.java111 * CharCodec cc = (CharCodec)ps.next();
277 nextName = (String)pending.next();
281 public Object next() throws ServiceConfigurationError { method in class:Service.LazyIterator
/libcore/ojluni/src/main/java/sun/util/
H A DResourceBundleEnumeration.java55 String next = null; field in class:ResourceBundleEnumeration
58 if (next == null) {
60 next = iterator.next();
62 while (next == null && enumeration.hasMoreElements()) {
63 next = enumeration.nextElement();
64 if (set.contains(next)) {
65 next = null;
70 return next != null;
75 String result = next;
[all...]
/libcore/luni/src/test/java/libcore/java/io/
H A DOldAndroidPipedStreamTest.java65 assertEquals(readByte, (byte) fib.next());
79 int toWrite = fib.next();
143 assertEquals("Error at " + countRead, fib.next(), readInt);
159 int toWrite = fib.next();
230 int toWrite = fib.next();
267 assertEquals("Error at " + i, readInt, fib.next());
275 public int next() { method in class:OldAndroidPipedStreamTest.Fibonacci
/libcore/ojluni/src/main/java/java/text/
H A DCharacterIterator.java56 * The methods previous() and next() are used for iteration. They return DONE if
67 * for(char c = iter.first(); c != CharacterIterator.DONE; c = iter.next()) {
89 * c = iter.next()) {
147 public char next(); method in interface:CharacterIterator
H A DCollationElementIterator.java82 * int primaryOrder = CollationElementIterator.primaryOrder(collationElementIterator.next());
89 * <code>CollationElementIterator.next</code> returns the collation order
90 * of the next character. A collation order consists of primary order,
93 * is its primary order; the next 8 bits is the secondary order and the
118 * Resets the cursor to the beginning of the string. The next call
119 * to next() will return the first collation element in the string.
126 * Get the next collation element in the string. <p>This iterator iterates
130 * collation element [or ordering priority] of the next character in the
133 * pointing to and then updates the internal pointer to point to the next element.
135 * means that when you change direction while iterating (i.e., call next() an
139 public int next() { method in class:CollationElementIterator
[all...]
H A DBreakIterator.java133 * for (int end = boundary.next();
135 * start = end, end = boundary.next()) {
161 * int end = boundary.next();
189 * Find the next word:
196 * int current = wb.next();
203 * current = wb.next();
211 * that each represent the end of one sentence and the beginning of the next.
215 * of a word: If the characters between this boundary and the next boundary
218 * and the next is a word; otherwise, it's the material between words.)
248 * DONE is returned by previous(), next(), nex
290 public abstract int next(int n); method in class:BreakIterator
304 public abstract int next(); method in class:BreakIterator
[all...]
H A DIcuIteratorWrapper.java130 * <td width="94%">Escape character.&nbsp; The \ itself is ignored, but causes the next
288 * equivalent to repeatedly calling next() or previous().
295 public int next(int n) { method in class:IcuIteratorWrapper
296 return wrapped.next(n);
300 * Advances the iterator to the next boundary position.
304 public int next() { method in class:IcuIteratorWrapper
305 return wrapped.next();
H A DStringCharacterIterator.java173 * Implements CharacterIterator.next() for String.
174 * @see CharacterIterator#next
176 public char next() method in class:StringCharacterIterator
H A DPatternEntry.java207 public PatternEntry next() throws ParseException { method in class:PatternEntry.Parser
/libcore/ojluni/src/main/java/java/io/
H A DStringReader.java40 private int next = 0; field in class:StringReader
70 if (next >= length)
72 return str.charAt(next++);
97 if (next >= length)
99 int n = Math.min(length - next, len);
100 str.getChars(next, next + n, cbuf, off);
101 next += n;
125 if (next >= length)
128 long n = Math.min(length - next, n
[all...]
/libcore/ojluni/src/main/java/java/sql/
H A DSQLException.java48 * <LI> a chain to a next Exception. This can be used to provide additional
272 * @return the next <code>SQLException</code> object in the chain;
277 return (next);
291 SQLException next=current.next;
292 if (next != null) {
293 current = next;
300 current=current.next;
328 public Throwable next() {
369 private volatile SQLException next; field in class:SQLException
[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/test/java/libcore/java/util/
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/ojluni/src/main/java/sun/util/locale/
H A DStringTokenIterator.java74 public String next() { method in class:StringTokenIterator
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DAttributedStringTest.java39 while ((ch = it.next()) != CharacterIterator.DONE)
105 public char next() { method in class:AttributedStringTest.testAttributedCharacterIterator
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractSequentialListTest.java83 public Object next() { method in class:AbstractSequentialListTest.Mock_unsupportedListIterator
122 public E next() { method in class:AbstractSequentialListTest.Mock_ListIterator
325 public Object next() {
440 public Object next() {
513 public Object next() {
H A DRandomTest.java272 protected int next(int bits) { method in class:RandomTest.Mock_Random
274 return super.next(bits);
/libcore/json/src/main/java/org/json/
H A DJSONTokener.java68 * The index of the next character to be returned by {@link #next}. When
87 * Returns the next value from the input.
170 * Advances the position until after the next newline character. If the line
320 /* ...next try to parse as a floating point... */
476 * Returns the next available character, or the null character '\0' if all
480 public char next() { method in class:JSONTokener
485 * Returns the next available character if it equals {@code c}. Otherwise an
488 public char next(char c) throws JSONException { method in class:JSONTokener
489 char result = next();
518 public String next(int length) throws JSONException { method in class:JSONTokener
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DDelayQueue.java58 * the leader, it waits only for the next delay to elapse, but
269 * this method returns the element that will expire next,
476 if (o == it.next()) {
505 int cursor; // index of next element to return
518 public E next() { method in class:DelayQueue.Itr
/libcore/ojluni/src/main/java/java/security/
H A DSecureRandom.java548 final protected int next(int numBits) { method in class:SecureRandom
551 int next = 0;
555 next = (next << 8) + (b[i] & 0xFF);
557 return next >>> (numBytes*8 - numBits);

Completed in 547 milliseconds

1234