Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 784 for iterator (0.06 sec)

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

          lastEntry = entry;
        }
    
        @Override
        public void setSuccessorInValueSet(ValueSetLink<K, V> entry) {
          firstEntry = entry;
        }
    
        @Override
        public Iterator<V> iterator() {
          return new Iterator<V>() {
            ValueSetLink<K, V> nextEntry = firstEntry;
            @CheckForNull ValueEntry<K, V> toRemove;
            int expectedModCount = modCount;
    
            private void checkForComodification() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java

    import com.google.common.collect.testing.features.CollectionFeature;
    import java.lang.reflect.Method;
    import java.util.Iterator;
    import java.util.List;
    import org.checkerframework.checker.nullness.qual.Nullable;
    import org.junit.Ignore;
    
    /**
     * Tester to make sure the {@code iterator().remove()} implementation of {@code Multiset} works when
     * there are multiple occurrences of elements.
     *
     * @author Louis Wasserman
     */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/AbstractMultiset.java

        @Override
        Multiset<E> multiset() {
          return AbstractMultiset.this;
        }
    
        @Override
        public Iterator<E> iterator() {
          return elementIterator();
        }
      }
    
      abstract Iterator<E> elementIterator();
    
      @LazyInit @CheckForNull private transient Set<Entry<E>> entrySet;
    
      @Override
      public Set<Entry<E>> entrySet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 6K bytes
    - Viewed (0)
  4. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelResolver.java

            Iterator<RemoteRepository> iterator = repositories.iterator();
            while (iterator.hasNext()) {
                RemoteRepository remoteRepository = iterator.next();
                if (remoteRepository.getId().equals(id)) {
                    iterator.remove();
                }
            }
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/TreeTraverser.java

        private final Deque<Iterator<T>> stack;
    
        PreOrderIterator(T root) {
          this.stack = new ArrayDeque<>();
          stack.addLast(singletonIterator(checkNotNull(root)));
        }
    
        @Override
        public boolean hasNext() {
          return !stack.isEmpty();
        }
    
        @Override
        public T next() {
          Iterator<T> itr = stack.getLast(); // throws NSEE if empty
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/FluentIterable.java

          @Override
          public Iterator<T> iterator() {
            return Iterators.concat(
                /* lazily generate the iterators on each input only as needed */
                new AbstractIndexedListIterator<Iterator<? extends T>>(inputs.length) {
                  @Override
                  public Iterator<? extends T> get(int i) {
                    return inputs[i].iterator();
                  }
                });
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/AndArtifactFilter.java

            this.filters = new LinkedHashSet<>(filters);
        }
    
        public boolean include(Artifact artifact) {
            boolean include = true;
            for (Iterator<ArtifactFilter> i = filters.iterator(); i.hasNext() && include; ) {
                ArtifactFilter filter = i.next();
                if (!filter.include(artifact)) {
                    include = false;
                }
            }
            return include;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Sets.java

            return set1.isEmpty() && set2.isEmpty();
          }
    
          @Override
          public UnmodifiableIterator<E> iterator() {
            return new AbstractIterator<E>() {
              final Iterator<? extends E> itr1 = set1.iterator();
              final Iterator<? extends E> itr2 = set2.iterator();
    
              @Override
              @CheckForNull
              protected E computeNext() {
                if (itr1.hasNext()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/SingleValueIterator.java

     */
    package org.codelibs.core.collection;
    
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    
    import org.codelibs.core.exception.ClUnsupportedOperationException;
    
    /**
     * 一つの値を返す{@link Iterator}です。
     *
     * @author koichik
     * @param <E>
     *            要素の型
     */
    public class SingleValueIterator<E> implements Iterator<E> {
    
        /** 反復子が返す唯一の値 */
        protected final E value;
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/GroupRepositoryMetadata.java

        }
    
        public void addPluginMapping(String goalPrefix, String artifactId, String name) {
            List<Plugin> plugins = getMetadata().getPlugins();
            boolean found = false;
            for (Iterator<Plugin> i = plugins.iterator(); i.hasNext() && !found; ) {
                Plugin plugin = i.next();
                if (plugin.getPrefix().equals(goalPrefix)) {
                    found = true;
                }
            }
            if (!found) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top