Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 168 for NoSuchElementException (0.27 sec)

  1. guava/src/com/google/common/collect/ContiguousSet.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.errorprone.annotations.DoNotCall;
    import java.util.Collections;
    import java.util.NoSuchElementException;
    import java.util.Set;
    
    /**
     * A sorted set of contiguous values in a given {@link DiscreteDomain}. Example:
     *
     * <pre>{@code
     * ContiguousSet.create(Range.closed(5, 42), DiscreteDomain.integers())
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractNavigableMap.java

        Entry<K, V> entry = firstEntry();
        if (entry == null) {
          throw new NoSuchElementException();
        } else {
          return entry.getKey();
        }
      }
    
      @Override
      @ParametricNullness
      public K lastKey() {
        Entry<K, V> entry = lastEntry();
        if (entry == null) {
          throw new NoSuchElementException();
        } else {
          return entry.getKey();
        }
      }
    
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jun 15 18:11:44 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/PropertiesAsMap.java

     * under the License.
     */
    package org.apache.maven.internal.impl;
    
    import java.util.AbstractMap;
    import java.util.AbstractSet;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.NoSuchElementException;
    import java.util.Set;
    
    class PropertiesAsMap extends AbstractMap<String, String> {
    
        private final Map<Object, Object> properties;
    
        PropertiesAsMap(Map<Object, Object> properties) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Lists;
    import java.util.Iterator;
    import java.util.List;
    import java.util.NoSuchElementException;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    
    /**
     * Unit test for IteratorTester.
     *
     * @author Mick Killianey
     */
    @GwtCompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/UnmodifiableIteratorTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link UnmodifiableIterator}.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  6. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ForwardingQueue.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.NoSuchElementException;
    import java.util.Queue;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 4.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/AbstractIterator.java

    import static com.google.common.base.Preconditions.checkState;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Note this class is a copy of {@link com.google.common.collect.AbstractIterator} (for dependency
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Jul 09 17:31:04 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtIncompatible;
    import java.util.Iterator;
    import java.util.List;
    import java.util.NoSuchElementException;
    import junit.framework.TestCase;
    
    /**
     * Base class for {@link RangeSet} tests.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible // TreeRangeSet
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java

            return true;
          } catch (ClassCastException e) {
            return false;
          } catch (NoSuchElementException e) {
            return false; // concurrent change to other set
          }
        }
        return containsAll(that);
      }
    
      @Override
      public E first() {
        if (isEmpty()) {
          throw new NoSuchElementException();
        }
        return elements.get(0);
      }
    
      @Override
      public E last() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
Back to top