Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 741 for iterated (0.09 sec)

  1. guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          StringBuilder sb = new StringBuilder();
          Iterator<String> iterator = components.iterator();
          if (iterator.hasNext()) {
            sb.append(iterator.next().toString());
            while (iterator.hasNext()) {
              sb.append(DELIMITER_STRING);
              sb.append(iterator.next());
            }
          }
          dummy ^= sb.toString().length();
        }
        return dummy;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/AbstractIteratorTest.java

        Iterator<Integer> iter =
            new AbstractIterator<Integer>() {
              @Override
              public Integer computeNext() {
                endOfData();
                throw new SomeUncheckedException();
              }
            };
        assertThrows(SomeUncheckedException.class, iter::hasNext);
      }
    
      public void testCantRemove() {
        Iterator<Integer> iter =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. 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)
  4. android/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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  5. 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)
  6. guava-tests/test/com/google/common/collect/SetsTest.java

        }
        try {
          Iterator<Integer> iterator = unmod.iterator();
          iterator.next();
          iterator.remove();
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          Iterator<Integer> iterator = unmod.descendingIterator();
          iterator.next();
          iterator.remove();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

    import com.google.common.collect.TestExceptions.SomeUncheckedException;
    import com.google.common.testing.GcFinalization;
    import java.lang.ref.WeakReference;
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit test for {@code AbstractIterator}.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

    import com.google.common.collect.TestExceptions.SomeUncheckedException;
    import com.google.common.testing.GcFinalization;
    import java.lang.ref.WeakReference;
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit test for {@code AbstractIterator}.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. 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)
  10. src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.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 () {
            FileEntry n = this.next;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.8K bytes
    - Viewed (0)
Back to top