Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 47 for ListIterator (0.27 sec)

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

        public int size() {
          return realDelegate.size();
        }
    
        @Override
        public ListIterator<E> listIterator(int index) {
          return realDelegate.listIterator(index);
        }
    
        @Override
        protected List<E> delegate() {
          throw new UnsupportedOperationException("This list only supports ListIterator");
        }
      }
    
      private static void assertTransformIterator(List<String> list) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

            @Override
            protected ListIterator<Entry<String, Integer>> newTargetIterator() {
              multimap = create();
              multimap.putAll("foo", asList(2, 3));
              multimap.putAll("bar", asList(4, 5));
              multimap.put("foo", 6);
              return multimap.entries().listIterator(startIndex);
            }
    
            @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableList.java

      @Override
      public UnmodifiableIterator<E> iterator() {
        return listIterator();
      }
    
      @Override
      public UnmodifiableListIterator<E> listIterator() {
        return listIterator(0);
      }
    
      @SuppressWarnings("unchecked")
      @Override
      public UnmodifiableListIterator<E> listIterator(int index) {
        checkPositionIndex(index, size());
        if (isEmpty()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(Iterator.class, ImmutableSet.of().iterator())
              .put(PeekingIterator.class, Iterators.peekingIterator(ImmutableSet.of().iterator()))
              .put(ListIterator.class, ImmutableList.of().listIterator())
              .put(Iterable.class, ImmutableSet.of())
              .put(Collection.class, ImmutableList.of())
              .put(ImmutableCollection.class, ImmutableList.of())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/Helpers.java

        return modified;
      }
    
      static <T extends @Nullable Object> Iterable<T> reverse(List<T> list) {
        return new Iterable<T>() {
          @Override
          public Iterator<T> iterator() {
            ListIterator<T> listIter = list.listIterator(list.size());
            return new Iterator<T>() {
              @Override
              public boolean hasNext() {
                return listIter.hasPrevious();
              }
    
              @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Synchronized.java

            return delegate().lastIndexOf(o);
          }
        }
    
        @Override
        public ListIterator<E> listIterator() {
          return delegate().listIterator(); // manually synchronized
        }
    
        @Override
        public ListIterator<E> listIterator(int index) {
          return delegate().listIterator(index); // manually synchronized
        }
    
        @Override
        public E remove(int index) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Synchronized.java

            return delegate().lastIndexOf(o);
          }
        }
    
        @Override
        public ListIterator<E> listIterator() {
          return delegate().listIterator(); // manually synchronized
        }
    
        @Override
        public ListIterator<E> listIterator(int index) {
          return delegate().listIterator(index); // manually synchronized
        }
    
        @Override
        public E remove(int index) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableList.java

      // ImmutableCollection.iterator() consistent.
      @Override
      public UnmodifiableIterator<E> iterator() {
        return listIterator();
      }
    
      @Override
      public UnmodifiableListIterator<E> listIterator() {
        return listIterator(0);
      }
    
      @Override
      public UnmodifiableListIterator<E> listIterator(int index) {
        return new AbstractIndexedListIterator<E>(size(), index) {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 19:14:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

    import java.util.Comparator;
    import java.util.Currency;
    import java.util.Deque;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.LinkedList;
    import java.util.List;
    import java.util.ListIterator;
    import java.util.Locale;
    import java.util.Map;
    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.PriorityQueue;
    import java.util.Queue;
    import java.util.Random;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                if (!String.valueOf(CLIManager.SET_USER_PROPERTY).equals(option.getOpt())) {
                    List<String> values = option.getValuesList();
                    for (ListIterator<String> it = values.listIterator(); it.hasNext(); ) {
                        it.set(MavenPropertiesLoader.substVars(it.next(), null, null, callback));
                    }
                }
                commandLineBuilder.addOption(option);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
Back to top