Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 488 for iteratorAt (0.14 sec)

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

      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testIteratorRemove_unsupported() {
        Iterator<E> iterator = collection.iterator();
        iterator.next();
        try {
          iterator.remove();
          fail("iterator.remove() should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException expected) {
        }
        expectUnchanged();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

      public int hashCode() {
        return Sets.hashCodeImpl(this);
      }
    
      // This declaration is needed to make Set.iterator() and
      // ImmutableCollection.iterator() appear consistent to javac's type inference.
      @Override
      public abstract UnmodifiableIterator<E> iterator();
    
      abstract static class CachingAsList<E> extends ImmutableSet<E> {
        @LazyInit private transient ImmutableList<E> asList;
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/RegularImmutableSortedSet.java

        } else if (isEmpty()) {
          return true;
        }
    
        if (SortedIterables.hasSameComparator(comparator, that)) {
          Iterator<?> otherIterator = that.iterator();
          try {
            Iterator<E> iterator = iterator();
            while (iterator.hasNext()) {
              Object element = iterator.next();
              Object otherElement = otherIterator.next();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/moduleconverter/dependencies/DefaultLocalConfigurationMetadataBuilderTest.groovy

            configuration.attributes >> Stub(AttributeContainerInternal)
            configuration.excludeRules >> ([] as Set)
            dependencySet.iterator() >> [].iterator()
            dependencyConstraintSet.iterator() >> [].iterator()
    
            configurationsProvider.setTheOnlyConfiguration(configuration)
        }
    
        def "builds configuration with no dependencies or exclude rules"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:21:15 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapRemoveTester.java

      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testKeySetIteratorRemove() {
        int initialSize = getNumElements();
        Iterator<K> iterator = getMap().keySet().iterator();
        iterator.next();
        iterator.remove();
        assertEquals(initialSize - 1, getMap().size());
        assertEquals(initialSize - 1, getMap().inverse().size());
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. 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.Arrays;
    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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. subprojects/core-api/src/main/java/org/gradle/api/internal/provider/views/SetPropertySetView.java

            return removed;
        }
    
        @Override
        public void clear() {
            delegate.empty();
        }
    
        @Override
        public Iterator<E> iterator() {
            Set<E> set = new LinkedHashSet<>(delegate.get());
            Iterator<E> it = set.iterator();
            return new Iterator<E>() {
                E previousValue = null;
                @Override
                public boolean hasNext() {
                    return it.hasNext();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 15:31:28 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/CollectionUtils.java

            List<T> result = new ArrayList<T>();
            Iterator<? extends Collection<T>> iterator = availableValuesByDescriptor.iterator();
            if (iterator.hasNext()) {
                Collection<T> firstSet = iterator.next();
                result.addAll(firstSet);
                while (iterator.hasNext()) {
                    Collection<T> next = iterator.next();
                    result.retainAll(next);
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ArrayTable.java

     * iteration ordering across rows and columns in the table's views. None of the view iterators
     * support {@link Iterator#remove}. If the table is modified after an iterator is created, the
     * iterator remains valid.
     *
     * <p>This class requires less memory than the {@link HashBasedTable} and {@link TreeBasedTable}
     * implementations, except when the table is sparse.
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java

      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testIteratorRemove_unsupported() {
        Iterator<E> iterator = collection.iterator();
        iterator.next();
        try {
          iterator.remove();
          fail("iterator.remove() should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException expected) {
        }
        expectUnchanged();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top