Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 51 for ListIterator (0.09 seconds)

  1. guava-tests/test/com/google/common/collect/ForwardingListIteratorTest.java

            .testForwarding(
                ListIterator.class,
                new Function<ListIterator, ListIterator<?>>() {
                  @Override
                  public ListIterator<?> apply(ListIterator delegate) {
                    return wrap((ListIterator<?>) delegate);
                  }
                });
      }
    
      private static <T> ListIterator<T> wrap(ListIterator<T> delegate) {
        return new ForwardingListIterator<T>() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java

    package com.google.common.collect;
    
    import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Iterator;
    import java.util.ListIterator;
    import java.util.NoSuchElementException;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullMarked;
    
    /**
     * Tests for UnmodifiableListIterator.
     *
     * @author Louis Wasserman
     */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/ForwardingListIterator.java

     */
    @GwtCompatible
    public abstract class ForwardingListIterator<E extends @Nullable Object>
        extends ForwardingIterator<E> implements ListIterator<E> {
    
      /** Constructor for use by subclasses. */
      protected ForwardingListIterator() {}
    
      @Override
      protected abstract ListIterator<E> delegate();
    
      @Override
      public void add(@ParametricNullness E element) {
        delegate().add(element);
      }
    
      @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  4. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SinceAndIncubatingRulesKotlinTest.kt

            fun wrap(a: kotlin.collections.Iterable<String>, b: kotlin.collections.Iterator<String>, c: kotlin.collections.ListIterator<String>): Unit = Unit
    
            fun wrap(a: kotlin.collections.Collection<String>): Unit = Unit
    
            fun wrap(a: kotlin.collections.List<String>, b: kotlin.collections.ArrayList<String>): Unit = Unit
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Jun 06 17:52:09 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/TransformedListIterator.java

        extends TransformedIterator<F, T> implements ListIterator<T> {
      TransformedListIterator(ListIterator<? extends F> backingIterator) {
        super(backingIterator);
      }
    
      private ListIterator<? extends F> backingIterator() {
        return (ListIterator<? extends F>) backingIterator;
      }
    
      @Override
      public final boolean hasPrevious() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/TransformedListIterator.java

        extends TransformedIterator<F, T> implements ListIterator<T> {
      TransformedListIterator(ListIterator<? extends F> backingIterator) {
        super(backingIterator);
      }
    
      private ListIterator<? extends F> backingIterator() {
        return (ListIterator<? extends F>) backingIterator;
      }
    
      @Override
      public final boolean hasPrevious() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/LinkedListMultimap.java

          removeAllNodes(current.getKey());
          current = null;
          expectedModCount = modCount;
        }
      }
    
      /** A {@code ListIterator} over values for a specified key. */
      private final class ValueForKeyIterator implements ListIterator<V> {
        @ParametricNullness final K key;
        int nextIndex;
        @Nullable Node<K, V> next;
        @Nullable Node<K, V> current;
        @Nullable Node<K, V> previous;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 27K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/RegularImmutableAsList.java

        return delegateList;
      }
    
      @SuppressWarnings("unchecked") // safe covariant cast!
      @Override
      public UnmodifiableListIterator<E> listIterator(int index) {
        return (UnmodifiableListIterator<E>) delegateList.listIterator(index);
      }
    
      @GwtIncompatible // not present in emulated superclass
      @Override
      int copyIntoArray(@Nullable Object[] dst, int offset) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/RegularImmutableAsList.java

        return delegateList;
      }
    
      @SuppressWarnings("unchecked") // safe covariant cast!
      @Override
      public UnmodifiableListIterator<E> listIterator(int index) {
        return (UnmodifiableListIterator<E>) delegateList.listIterator(index);
      }
    
      @GwtIncompatible // not present in emulated superclass
      @Override
      public void forEach(Consumer<? super E> action) {
        delegateList.forEach(action);
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/AbstractIndexedListIterator.java

    import static com.google.common.base.Preconditions.checkPositionIndex;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.ListIterator;
    import java.util.NoSuchElementException;
    import org.jspecify.annotations.Nullable;
    
    /**
     * This class provides a skeletal implementation of the {@link ListIterator} interface across a
     * fixed number of elements that may be retrieved by position. It does not support {@link #remove},
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.2K bytes
    - Click Count (0)
Back to Top