- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 121 for hasNext (0.09 sec)
-
src/main/java/org/codelibs/core/collection/SingleValueIterator.java
public SingleValueIterator(final E value) { this.value = value; } @Override public boolean hasNext() { return hasNext; } @Override public E next() { if (!hasNext) { throw new NoSuchElementException(); } hasNext = false; return value; } @Override public void remove() {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/LineIteratorTest.java
final LineIterator it = new LineIterator(reader); assertThat(it.hasNext(), is(true)); assertThat(it.next(), is("aaa")); assertThat(it.hasNext(), is(true)); assertThat(it.next(), is("bbb")); assertThat(it.hasNext(), is(true)); assertThat(it.next(), is("ccc")); assertThat(it.hasNext(), is(not(true))); } /** * @throws Exception */ @Test
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassLoaderIteratorTest.java
assertThat(it.hasNext(), is(true)); assertThat(it.next(), is(sameInstance(cl3))); assertThat(it.hasNext(), is(true)); assertThat(it.next(), is(sameInstance(cl2))); assertThat(it.hasNext(), is(true)); assertThat(it.next(), is(sameInstance(cl1))); assertThat(it.hasNext(), is(not(true))); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassIteratorTest.java
assertThat(it.hasNext(), is(true)); assertThat(it.next(), is(sameClass(Integer.class))); assertThat(it.hasNext(), is(true)); assertThat(it.next(), is(sameClass(Number.class))); assertThat(it.hasNext(), is(true)); assertThat(it.next(), is(sameClass(Object.class))); assertThat(it.hasNext(), is(not(true))); } /**
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.1K bytes - Viewed (0) -
guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java
assertFalse(iterator.hasNext()); assertThrows(NoSuchElementException.class, () -> iterator.next()); assertThrows(IllegalStateException.class, () -> iterable.iterator()); } public void testOf_one() { Iterable<String> iterable = MinimalIterable.of("a"); Iterator<String> iterator = iterable.iterator(); assertTrue(iterator.hasNext()); assertEquals("a", iterator.next());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/SingleValueIteratorTest.java
/** * */ @Test public void test() { final SingleValueIterator<String> it = new SingleValueIterator<String>("Foo"); assertThat(it.hasNext(), is(true)); assertThat(it.next(), is("Foo")); assertThat(it.hasNext(), is(not(true))); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java
Iterator<String> iterator = create(); assertTrue(iterator.hasNext()); assertEquals("a", iterator.next()); assertThrows(UnsupportedOperationException.class, () -> iterator.remove()); } @SuppressWarnings("DoNotCall") public void testAdd() { ListIterator<String> iterator = create(); assertTrue(iterator.hasNext()); assertEquals("a", iterator.next()); assertEquals("b", iterator.next());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 2.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 4.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
}; assertTrue(iter.hasNext()); assertEquals(0, (int) iter.next()); // verify idempotence of hasNext() assertTrue(iter.hasNext()); assertTrue(iter.hasNext()); assertTrue(iter.hasNext()); assertEquals(1, (int) iter.next()); assertFalse(iter.hasNext()); // Make sure computeNext() doesn't get invoked again assertFalse(iter.hasNext());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 8.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
}; assertTrue(iter.hasNext()); assertEquals(0, (int) iter.next()); // verify idempotence of hasNext() assertTrue(iter.hasNext()); assertTrue(iter.hasNext()); assertTrue(iter.hasNext()); assertEquals(1, (int) iter.next()); assertFalse(iter.hasNext()); // Make sure computeNext() doesn't get invoked again assertFalse(iter.hasNext());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 8.1K bytes - Viewed (0)