Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 607 for Iterators (0.05 seconds)

  1. guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java

        } catch (UnsupportedOperationException e) {
          return;
        }
        if (map.size() < 2 || !supportsPut) {
          return;
        }
        Iterator<Entry<K, V>> iterator = map.entrySet().iterator();
        Entry<K, V> firstEntry = iterator.next();
        Entry<K, V> secondEntry = iterator.next();
        K key = secondEntry.getKey();
        SortedMap<K, V> subMap = map.tailMap(key);
        V value = getValueNotInPopulatedMap();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Oct 17 20:00:30 GMT 2024
    - 3.9K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java

        assertFalse(getMap().entrySet().iterator().hasNext());
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_REMOVE})
      @CollectionSize.Require(SEVERAL)
      public void testClearConcurrentWithEntrySetIteration() {
        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator();
              getMap().clear();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 3.9K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/NetServerEnumIterator.java

            }
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.util.Iterator#hasNext()
         */
        @Override
        public boolean hasNext() {
            return this.next != null;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.util.Iterator#next()
         */
        @Override
        public FileEntry next() {
            final FileEntry n = this.next;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ResolutionNode.java

         */
        public boolean isChildOfRootNode() {
            return parent != null && parent.parent == null;
        }
    
        public Iterator<ResolutionNode> getChildrenIterator() {
            return children.iterator();
        }
    
        public int getDepth() {
            return depth;
        }
    
        public List<ArtifactRepository> getRemoteRepositories() {
            return remoteRepositories;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 6.6K bytes
    - Click Count (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/io/xpp3/CoreExtensionsXpp3Writer.java

            if ((coreExtensions.getExtensions() != null)
                    && (coreExtensions.getExtensions().size() > 0)) {
                for (Iterator iter = coreExtensions.getExtensions().iterator(); iter.hasNext(); ) {
                    CoreExtension o = (CoreExtension) iter.next();
                    writeCoreExtension(o, "extension", serializer);
                }
            }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/DefaultProjectDependenciesResolver.java

                } catch (MultipleArtifactsNotFoundException e) {
    
                    Collection<Artifact> missing = new HashSet<>(e.getMissingArtifacts());
    
                    for (Iterator<Artifact> it = missing.iterator(); it.hasNext(); ) {
                        String key = ArtifactUtils.key(it.next());
                        if (projectIds.contains(key)) {
                            it.remove();
                        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 8.4K bytes
    - Click Count (1)
  7. 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.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.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.
     *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  8. guava-testlib/src/com/google/common/collect/testing/IteratorFeature.java

      /** Support for {@link Iterator#remove()}. */
      SUPPORTS_REMOVE,
      /**
       * Support for {@link ListIterator#add(Object)}; ignored for plain {@link Iterator}
       * implementations.
       */
      SUPPORTS_ADD,
      /**
       * Support for {@link ListIterator#set(Object)}; ignored for plain {@link Iterator}
       * implementations.
       */
      SUPPORTS_SET;
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 03 18:22:43 GMT 2023
    - 1.9K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/ForwardingSortedMultiset.java

      /**
       * A sensible definition of {@link #firstEntry()} in terms of {@code entrySet().iterator()}.
       *
       * <p>If you override {@link #entrySet()}, you may wish to override {@link #firstEntry()} to
       * forward to this implementation.
       */
      protected @Nullable Entry<E> standardFirstEntry() {
        Iterator<Entry<E>> entryIterator = entrySet().iterator();
        if (!entryIterator.hasNext()) {
          return null;
        }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/ShareEnumIteratorTest.java

            SmbFile parent = newParent();
    
            FileEntry invalid = entry(invalidName, SmbConstants.TYPE_SHARE);
            FileEntry valid = entry("ok", SmbConstants.TYPE_SHARE);
            Iterator<FileEntry> delegate = Arrays.asList(invalid, valid).iterator();
    
            ResourceFilter f = useFilter ? filter : null;
            if (useFilter) {
                when(filter.accept(any())).thenReturn(true);
            }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.1K bytes
    - Click Count (0)
Back to Top