Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 65 for UnmodifiableIterator (0.1 sec)

  1. android/guava/src/com/google/common/collect/package-info.java

     *   <li>{@link Tables}
     * </ul>
     *
     * <h2>Abstract implementations</h2>
     *
     * <ul>
     *   <li>{@link AbstractIterator}
     *   <li>{@link AbstractSequentialIterator}
     *   <li>{@link UnmodifiableIterator}
     *   <li>{@link UnmodifiableListIterator}
     * </ul>
     *
     * <h2>Forwarding collections</h2>
     *
     * We provide implementations of collections that forward all method calls to a delegate collection
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 06 16:29:45 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/package-info.java

     *   <li>{@link Tables}
     * </ul>
     *
     * <h2>Abstract implementations</h2>
     *
     * <ul>
     *   <li>{@link AbstractIterator}
     *   <li>{@link AbstractSequentialIterator}
     *   <li>{@link UnmodifiableIterator}
     *   <li>{@link UnmodifiableListIterator}
     * </ul>
     *
     * <h2>Forwarding collections</h2>
     *
     * We provide implementations of collections that forward all method calls to a delegate collection
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 06 16:29:45 UTC 2023
    - 5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableRangeSet.java

                break;
              }
            }
            result = size = Ints.saturatedCast(total);
          }
          return result.intValue();
        }
    
        @Override
        public UnmodifiableIterator<C> iterator() {
          return new AbstractIterator<C>() {
            final Iterator<Range<C>> rangeItr = ranges.iterator();
            Iterator<C> elemItr = emptyIterator();
    
            @Override
            @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/AbstractIterator.java

    // com.google.common.base.AbstractIterator
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class AbstractIterator<T extends @Nullable Object> extends UnmodifiableIterator<T> {
      private State state = State.NOT_READY;
    
      /** Constructor for use by subclasses. */
      protected AbstractIterator() {}
    
      private enum State {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 18 02:04:10 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSortedSet.java

       */
      @Override
      public Comparator<? super E> comparator() {
        return comparator;
      }
    
      @Override // needed to unify the iterator() methods in Collection and SortedIterable
      public abstract UnmodifiableIterator<E> iterator();
    
      /**
       * {@inheritDoc}
       *
       * <p>This method returns a serializable {@code ImmutableSortedSet}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> mod = Lists.newArrayList("a", "b", "c").iterator();
        UnmodifiableIterator<String> unmod = Iterators.unmodifiableIterator(mod);
        assertNotSame(mod, unmod);
        assertSame(unmod, Iterators.unmodifiableIterator(unmod));
        assertSame(unmod, Iterators.unmodifiableIterator((Iterator<String>) unmod));
      }
    
      @SuppressWarnings("deprecation")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> mod = Lists.newArrayList("a", "b", "c").iterator();
        UnmodifiableIterator<String> unmod = Iterators.unmodifiableIterator(mod);
        assertNotSame(mod, unmod);
        assertSame(unmod, Iterators.unmodifiableIterator(unmod));
        assertSame(unmod, Iterators.unmodifiableIterator((Iterator<String>) unmod));
      }
    
      @SuppressWarnings("deprecation")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/RegularImmutableBiMap.java

          boolean isHashCodeFast() {
            return true;
          }
    
          @Override
          public int hashCode() {
            return hashCode;
          }
    
          @Override
          public UnmodifiableIterator<Entry<V, K>> iterator() {
            return asList().iterator();
          }
    
          @Override
          public void forEach(Consumer<? super Entry<V, K>> action) {
            asList().forEach(action);
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/DenseImmutableTable.java

        @CheckForNull
        public V get(@CheckForNull Object key) {
          Integer keyIndex = keyToIndex().get(key);
          return (keyIndex == null) ? null : getValue(keyIndex);
        }
    
        @Override
        UnmodifiableIterator<Entry<K, V>> entryIterator() {
          return new AbstractIterator<Entry<K, V>>() {
            private int index = -1;
            private final int maxIndex = keyToIndex().size();
    
            @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multisets.java

              ? entrySet = (Set) Collections.unmodifiableSet(delegate.entrySet())
              : es;
        }
    
        @Override
        public Iterator<E> iterator() {
          return Iterators.<E>unmodifiableIterator(delegate.iterator());
        }
    
        @Override
        public boolean add(@ParametricNullness E element) {
          throw new UnsupportedOperationException();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.7K bytes
    - Viewed (0)
Back to top