Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 581 for Iterator$ (0.08 sec)

  1. android/guava/src/com/google/common/collect/Streams.java

      }
    
      /**
       * Returns a sequential {@link Stream} of the remaining contents of {@code iterator}. Do not use
       * {@code iterator} directly after passing it to this method.
       */
      public static <T extends @Nullable Object> Stream<T> stream(Iterator<T> iterator) {
        return StreamSupport.stream(Spliterators.spliteratorUnknownSize(iterator, 0), false);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableMapValues.java

          }
        };
      }
    
      @Override
      public boolean contains(@CheckForNull Object object) {
        return object != null && Iterators.contains(iterator(), object);
      }
    
      @Override
      boolean isPartialView() {
        return true;
      }
    
      @Override
      public ImmutableList<V> asList() {
        final ImmutableList<Entry<K, V>> entryList = map.entrySet().asList();
        return new ImmutableList<V>() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/EdgesConnecting.java

        this.targetNode = checkNotNull(targetNode);
      }
    
      @Override
      public UnmodifiableIterator<E> iterator() {
        E connectingEdge = getConnectingEdge();
        return (connectingEdge == null)
            ? ImmutableSet.<E>of().iterator()
            : Iterators.singletonIterator(connectingEdge);
      }
    
      @Override
      public int size() {
        return getConnectingEdge() == null ? 0 : 1;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

          if (eventSubscribers != null) {
            // eager no-copy snapshot
            subscriberIterators.add(eventSubscribers.iterator());
          }
        }
    
        return Iterators.concat(subscriberIterators.iterator());
      }
    
      /**
       * A thread-safe cache that contains the mapping from each class to all methods in that class and
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

      public void testRemoveIfSomeMatchesConcurrentWithIteration() {
        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<E> iterator = collection.iterator();
              assertTrue(collection.removeIf(Predicate.isEqual(samples.e0())));
              iterator.next();
            });
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/ClasspathContainer.java

            this(scope);
            this.classpath = classpath;
        }
    
        // -------------------------------------------------------------------------------------------
        public Iterator<ArtifactMetadata> iterator() {
            return classpath == null ? null : classpath.iterator();
        }
    
        // -------------------------------------------------------------------------------------------
        public ClasspathContainer add(ArtifactMetadata md) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java

            StringBuilder projectNames = new StringBuilder();
            Iterator<MavenProject> iterator = projects.iterator();
            while (iterator.hasNext()) {
                MavenProject project = iterator.next();
                projectNames.append(project.getGroupId()).append(":").append(project.getArtifactId());
                if (iterator.hasNext()) {
                    projectNames.append(", ");
                }
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/HashBiMapTest.java

        Set<Entry<Integer, String>> entries = map.entrySet();
        Iterator<Entry<Integer, String>> iterator = entries.iterator();
        Entry<Integer, String> entry = iterator.next();
        entry.setValue("two"); // changes the iterator's current entry value
        assertEquals("two", map.get(1));
        assertEquals(Integer.valueOf(1), map.inverse().get("two"));
        iterator.remove(); // removes the updated entry
        assertTrue(map.isEmpty());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java

      public void testAddAtIndexConcurrentWithIteration() {
        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<E> iterator = collection.iterator();
              getList().add(0, e3());
              iterator.next();
            });
      }
    
      @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX)
      public void testAddAtIndex_unsupportedNotPresent() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/IncludesArtifactFilter.java

        }
    
        public boolean include(Artifact artifact) {
            String id = artifact.getGroupId() + ":" + artifact.getArtifactId();
    
            boolean matched = false;
            for (Iterator<String> i = patterns.iterator(); i.hasNext() & !matched; ) {
                // TODO what about wildcards? Just specifying groups? versions?
                if (id.equals(i.next())) {
                    matched = true;
                }
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top