Searched defs:nextInt (Results 1 - 9 of 9) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
H A DPrimitiveIterator.java42 * should be used. For example, {@link PrimitiveIterator.OfInt#nextInt()} and
94 int nextInt(); method in interface:PrimitiveIterator.OfInt
106 * action.accept(nextInt());
115 action.accept(nextInt());
122 * {@link #nextInt()}, and returns that boxed result.
127 Tripwire.trip(getClass(), "{0} calling PrimitiveIterator.OfInt.nextInt()");
128 return nextInt();
H A DRandom.java218 * for (int rnd = nextInt(), n = Math.min(bytes.length - i, 4);
229 for (int rnd = nextInt(),
266 * The form of nextInt used by IntStream Spliterators.
267 * For the unbounded case: uses nextInt().
268 * For the bounded case with representable range: uses nextInt(int bound)
269 * For the bounded case with unrepresentable range: uses nextInt()
279 return nextInt(n) + origin;
284 r = nextInt();
290 return nextInt();
314 * contract of {@code nextInt} i
328 public int nextInt() { method in class:Random
386 public int nextInt(int bound) { method in class:Random
[all...]
H A DSplittableRandom.java106 * Methods nextLong, nextInt, and derivatives do not return the
313 * The form of nextInt used by IntStream Spliterators.
406 public int nextInt() { method in class:SplittableRandom
419 public int nextInt(int bound) { method in class:SplittableRandom
447 public int nextInt(int origin, int bound) { method in class:SplittableRandom
H A DScanner.java55 * int i = sc.nextInt();
72 * System.out.println(s.nextInt());
73 * System.out.println(s.nextInt());
108 * primitive-type companion methods (such as {@link #nextInt} and
1297 * exception. For instance, after an invocation of the {@link #nextInt}
2017 * {@link #nextInt} method. The scanner does not advance past any input.
2030 * {@link #nextInt} method. The scanner does not advance past any input.
2081 * <tt>nextInt()</tt> behaves in exactly the same way as the
2082 * invocation <tt>nextInt(radix)</tt>, where <code>radix</code>
2092 public int nextInt() { method in class:Scanner
2122 public int nextInt(int radix) { method in class:Scanner
[all...]
H A DFormatter.java2588 String nint = nextInt();
2607 width = nextInt();
2615 precision = nextInt();
2627 private String nextInt() { method in class:Formatter.FormatSpecifierParser
/libcore/luni/src/test/java/libcore/java/util/
H A DPrimitiveIteratorTest.java41 public int nextInt() { method in class:PrimitiveIteratorTest.CannedIntIterator
H A DSpliteratorsTest.java529 public int nextInt() { method in class:SpliteratorsTest.CannedIntPrimitiveIterator
803 assertEquals(2, it.nextInt());
/libcore/dalvik/src/main/java/dalvik/system/
H A DEmulatedStackFrame.java394 writer.putNextInt(reader.nextInt());
476 public int nextInt() { method in class:EmulatedStackFrame.StackFrameReader
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DThreadLocalRandom.java232 * The form of nextInt used by IntStream Spliterators.
282 public int nextInt() { method in class:ThreadLocalRandom
295 public int nextInt(int bound) { method in class:ThreadLocalRandom
322 public int nextInt(int origin, int bound) { method in class:ThreadLocalRandom

Completed in 148 milliseconds