Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for EmptyIterator (0.07 seconds)

  1. src/main/java/org/codelibs/core/collection/EmptyIterator.java

    /**
     * An empty {@link Iterator}.
     *
     * @author higa
     * @param <T> the element type
     */
    public class EmptyIterator<T> implements Iterator<T> {
    
        /**
         * Creates an {@link EmptyIterator}.
         */
        public EmptyIterator() {
        }
    
        @Override
        public void remove() {
            throw new ClUnsupportedOperationException("remove");
        }
    
        @Override
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/core/collection/EmptyIteratorTest.java

            exception.expectMessage(is("remove"));
            final EmptyIterator<String> emptyIterator = new EmptyIterator<String>();
            emptyIterator.remove();
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.collection.EmptyIterator#hasNext()}.
         */
        @Test
        public void testHasNext() {
            final EmptyIterator<String> emptyIterator = new EmptyIterator<String>();
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/EmptyContiguousSet.java

      int indexOf(@Nullable Object target) {
        return -1;
      }
    
      @Override
      public UnmodifiableIterator<C> iterator() {
        return emptyIterator();
      }
    
      @GwtIncompatible // NavigableSet
      @Override
      public UnmodifiableIterator<C> descendingIterator() {
        return emptyIterator();
      }
    
      @Override
      boolean isPartialView() {
        return false;
      }
    
      @Override
      public boolean isEmpty() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/core/collection/EmptyEnumeration.java

     */
    public class EmptyEnumeration<T> extends IteratorEnumeration<T> {
    
        /**
         * Creates an {@link EmptyEnumeration}.
         */
        public EmptyEnumeration() {
            super(new EmptyIterator<T>());
        }
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 993 bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/EmptyContiguousSet.java

      int indexOf(@Nullable Object target) {
        return -1;
      }
    
      @Override
      public UnmodifiableIterator<C> iterator() {
        return emptyIterator();
      }
    
      @GwtIncompatible // NavigableSet
      @Override
      public UnmodifiableIterator<C> descendingIterator() {
        return emptyIterator();
      }
    
      @Override
      boolean isPartialView() {
        return false;
      }
    
      @Override
      public boolean isEmpty() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  6. android/guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

    import static com.google.common.collect.testing.Helpers.assertEqualInOrder;
    import static com.google.common.collect.testing.Helpers.testComparator;
    import static java.util.Arrays.asList;
    import static java.util.Collections.emptyIterator;
    import static java.util.Collections.singleton;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.ArrayList;
    import java.util.HashMap;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 09 19:16:24 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  7. guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

    import static com.google.common.collect.testing.Helpers.assertEqualInOrder;
    import static com.google.common.collect.testing.Helpers.testComparator;
    import static java.util.Arrays.asList;
    import static java.util.Collections.emptyIterator;
    import static java.util.Collections.singleton;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.ArrayList;
    import java.util.HashMap;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 09 19:16:24 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

        expectUnchanged();
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAllEmptyIterableOnAbsentKey() {
        assertFalse(multimap().putAll(k3(), Collections::emptyIterator));
        expectUnchanged();
      }
    
      @SuppressWarnings("EmptyList") // ImmutableList doesn't support nullable element types
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_PUT)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

        expectUnchanged();
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAllEmptyIterableOnAbsentKey() {
        assertFalse(multimap().putAll(k3(), Collections::emptyIterator));
        expectUnchanged();
      }
    
      @SuppressWarnings("EmptyList") // ImmutableList doesn't support nullable element types
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_PUT)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 7.4K bytes
    - Click Count (0)
Back to Top