- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 149 for NoSuchElementException (0.24 sec)
-
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
fail("peek() should throw NoSuchElementException at end"); } catch (NoSuchElementException expected) { } try { iter.peek(); fail("peek() should continue to throw NoSuchElementException at end"); } catch (NoSuchElementException expected) { } try { iter.next(); fail("next() should throw NoSuchElementException as usual");
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 10:16:44 GMT 2024 - 8.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
fail("peek() should throw NoSuchElementException at end"); } catch (NoSuchElementException expected) { } try { iter.peek(); fail("peek() should continue to throw NoSuchElementException at end"); } catch (NoSuchElementException expected) { } try { iter.next(); fail("next() should throw NoSuchElementException as usual");
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 10:16:44 GMT 2024 - 8.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/EmptyContiguousSet.java
EmptyContiguousSet(DiscreteDomain<C> domain) { super(domain); } @Override public C first() { throw new NoSuchElementException(); } @Override public C last() { throw new NoSuchElementException(); } @Override public int size() { return 0; } @Override public ContiguousSet<C> intersection(ContiguousSet<C> other) {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Tue Mar 28 18:35:00 GMT 2023 - 4.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/DiscreteDomain.java
* * <p>The default implementation throws {@code NoSuchElementException}. * * @return the minimum value of type {@code C}; never null * @throws NoSuchElementException if the type has no (practical) minimum value; for example, * {@link java.math.BigInteger} */ @CanIgnoreReturnValue public C minValue() { throw new NoSuchElementException(); } /**
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 10.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/SortedSetNavigationTester.java
public void testEmptySetFirst() { try { sortedSet.first(); fail(); } catch (NoSuchElementException e) { } } @CollectionSize.Require(ZERO) public void testEmptySetLast() { try { sortedSet.last(); fail(); } catch (NoSuchElementException e) { } } @CollectionSize.Require(ONE) public void testSingletonSetFirst() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 3.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MoreCollectorsTest.java
} } public void testOnlyElement() { try { Stream.empty().collect(MoreCollectors.onlyElement()); fail("Expected NoSuchElementException"); } catch (NoSuchElementException expected) { } } public void testOnlyElementSingleton() { assertThat(Stream.of(1).collect(MoreCollectors.onlyElement())).isEqualTo(1); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 3.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java
* limitations under the License. */ package com.google.common.collect; import com.google.common.annotations.GwtCompatible; import java.util.Iterator; import java.util.ListIterator; import java.util.NoSuchElementException; import junit.framework.TestCase; /** * Tests for UnmodifiableListIterator. * * @author Louis Wasserman */ @GwtCompatible @ElementTypesAreNonnullByDefault
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 2.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/DiscreteDomain.java
* * <p>The default implementation throws {@code NoSuchElementException}. * * @return the minimum value of type {@code C}; never null * @throws NoSuchElementException if the type has no (practical) minimum value; for example, * {@link java.math.BigInteger} */ @CanIgnoreReturnValue public C minValue() { throw new NoSuchElementException(); } /**
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 10.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java
PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); try { peekingIterator.peek(); fail("Should throw NoSuchElementException if nothing to peek()"); } catch (NoSuchElementException e) { /* expected */ } } public void testPeekDoesntChangeIteration() { List<?> list = Lists.newArrayList("A", "B", "C");
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SortedSetNavigationTester.java
public void testEmptySetFirst() { try { sortedSet.first(); fail(); } catch (NoSuchElementException e) { } } @CollectionSize.Require(ZERO) public void testEmptySetLast() { try { sortedSet.last(); fail(); } catch (NoSuchElementException e) { } } @CollectionSize.Require(ONE) public void testSingletonSetFirst() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 3.1K bytes - Viewed (0)