Searched defs:next (Results 1 - 25 of 86) 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...]
/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/nio/file/
H A DFileTreeIterator.java43 * Event ev = iterator.next();
53 private Event next; field in class:FileTreeIterator
72 this.next = walker.walk(start);
73 assert next.type() == FileTreeWalker.EventType.ENTRY ||
74 next.type() == FileTreeWalker.EventType.START_DIRECTORY;
77 IOException ioe = next.ioeException();
83 if (next == null) {
84 FileTreeWalker.Event ev = walker.next();
92 next = ev;
95 ev = walker.next();
109 public Event next() { method in class:FileTreeIterator
[all...]
/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
124 * Resets the cursor to the beginning of the string. The next call
125 * to next() will return the first collation element in the string.
134 * Get the next collation element in the string. <p>This iterator iterates
138 * collation element [or ordering priority] of the next character in the
141 * pointing to and then updates the internal pointer to point to the next element.
143 * means that when you change direction while iterating (i.e., call next() an
149 public int next() method in class:CollationElementIterator
[all...]
H A DBreakIterator.java138 * for (int end = boundary.next();
140 * start = end, end = boundary.next()) {
166 * int end = boundary.next();
194 * Find the next word:
201 * int current = wb.next();
208 * current = wb.next();
216 * that each represent the end of one sentence and the beginning of the next.
220 * of a word: If the characters between this boundary and the next boundary
223 * and the next is a word; otherwise, it's the material between words.)
255 * DONE is returned by previous(), next(), nex
294 public abstract int next(int n); method in class:BreakIterator
307 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.java175 * Implements CharacterIterator.next() for String.
176 * @see CharacterIterator#next
178 public char next() method in class:StringCharacterIterator
/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/ojluni/src/main/java/sun/nio/fs/
H A DGlobs.java45 private static char next(String glob, int i) { method in class:Globs
71 char next = globPattern.charAt(i++);
72 if (isGlobMeta(next) || isRegexMeta(next)) {
75 regex.append(next);
91 if (next(globPattern, i) == '^') {
97 if (next(globPattern, i) == '!') {
102 if (next(globPattern, i) == '-') {
120 c == '&' && next(globPattern, i) == '&') {
131 if ((c = next(globPatter
[all...]
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
H A DTestExampleCode.java177 HijrahDate hd5 = next(hd2);
190 HijrahDate next = next(date);
203 private <D extends ChronoLocalDate> D next(D date) { method in class:TestExampleCode
/libcore/luni/src/main/java/java/lang/ref/
H A DFinalizerReference.java37 private FinalizerReference<?> next; field in class:FinalizerReference
59 reference.next = head;
69 FinalizerReference<?> next = reference.next;
71 reference.next = null;
74 prev.next = next;
76 head = next;
78 if (next != null) {
79 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/java/time/temporal/
H A DTemporalAdjusters.java100 * <li>finding the first day of next month
102 * <li>finding the first day of next year
104 * <li>finding the next or previous day-of-week, such as "next Thursday"
193 * Returns the "first day of next month" adjuster, which returns a new date set to
194 * the first day of the next month.
206 * @return the first day of next month adjuster, not null
255 * Returns the "first day of next year" adjuster, which returns a new date set to
256 * the first day of the next year.
267 * @return the first day of next mont
386 public static TemporalAdjuster next(DayOfWeek dayOfWeek) { method in class:TemporalAdjusters
[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...]

Completed in 2193 milliseconds

1234