Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 784 for iterator (0.1 sec)

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

      @CollectionSize.Require(SEVERAL)
      public void testClearConcurrentWithIteration() {
        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<E> iterator = collection.iterator();
              collection.clear();
              iterator.next();
            });
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/FileToRawModelMerger.java

                DependencyManagement target,
                DependencyManagement source,
                boolean sourceDominant,
                Map<Object, Object> context) {
            Iterator<Dependency> sourceIterator = source.getDependencies().iterator();
            builder.dependencies(target.getDependencies().stream()
                    .map(d -> mergeDependency(d, sourceIterator.next(), sourceDominant, context))
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ForwardingSortedSet.java

          SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this;
          Iterator<?> iterator = self.tailSet(object).iterator();
          if (iterator.hasNext()) {
            Object ceiling = iterator.next();
            if (unsafeCompare(comparator(), ceiling, object) == 0) {
              iterator.remove();
              return true;
            }
          }
        } catch (ClassCastException | NullPointerException e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableRangeSet.java

          }
          return result.intValue();
        }
    
        @Override
        public UnmodifiableIterator<C> iterator() {
          return new AbstractIterator<C>() {
            final Iterator<Range<C>> rangeItr = ranges.iterator();
            Iterator<C> elemItr = emptyIterator();
    
            @Override
            @CheckForNull
            protected C computeNext() {
              while (!elemItr.hasNext()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/CaseInsensitiveSet.java

         *            初期容量
         */
        public CaseInsensitiveSet(final int initialCapacity) {
            map = new CaseInsensitiveMap<>(initialCapacity);
        }
    
        @Override
        public Iterator<String> iterator() {
            return map.keySet().iterator();
        }
    
        @Override
        public int size() {
            return map.size();
        }
    
        @Override
        public boolean isEmpty() {
            return map.isEmpty();
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ForwardingList.java

      }
    
      /**
       * A sensible default implementation of {@link #iterator}, in terms of {@link #listIterator()}. If
       * you override {@link #listIterator()}, you may wish to override {@link #iterator} to forward to
       * this implementation.
       *
       * @since 7.0
       */
      protected Iterator<E> standardIterator() {
        return listIterator();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

        List<Object> list = new ArrayList<>();
        assertEmpty(list);
        assertEmpty(
            new Iterable<Object>() {
              @Override
              public Iterator<Object> iterator() {
                return emptyList().iterator();
              }
            });
    
        list.add("a");
        try {
          assertEmpty(list);
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

        List<Object> list = new ArrayList<>();
        assertEmpty(list);
        assertEmpty(
            new Iterable<Object>() {
              @Override
              public Iterator<Object> iterator() {
                return emptyList().iterator();
              }
            });
    
        list.add("a");
        try {
          assertEmpty(list);
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/SampleElements.java

        this.e4 = e4;
      }
    
      @Override
      public Iterator<E> iterator() {
        return asList().iterator();
      }
    
      public List<E> asList() {
        return Arrays.asList(e0(), e1(), e2(), e3(), e4());
      }
    
      public static class Strings extends SampleElements<String> {
        public Strings() {
          // elements aren't sorted, to better test SortedSet iteration ordering
          super("b", "a", "c", "d", "e");
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. 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)
Back to top