Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 731 - 740 of 1,005 for NEXT (0.26 seconds)

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

        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator();
              put(e3());
              iterator.next();
            });
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_PUT})
      @CollectionSize.Require(absent = ZERO)
      public void testPutAbsentConcurrentWithKeySetIteration() {
        assertThrows(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/TreeRangeSet.java

            backingItr.next();
          }
          return new AbstractIterator<Entry<Cut<C>, Range<C>>>() {
            @Override
            protected @Nullable Entry<Cut<C>, Range<C>> computeNext() {
              if (!backingItr.hasNext()) {
                return endOfData();
              }
              Range<C> range = backingItr.next();
              return upperBoundWindow.lowerBound.isLessThan(range.upperBound)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 32.3K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/LexicographicalOrdering.java

        Iterator<T> right = rightIterable.iterator();
        while (left.hasNext()) {
          if (!right.hasNext()) {
            return LEFT_IS_GREATER; // because it's longer
          }
          int result = elementOrder.compare(left.next(), right.next());
          if (result != 0) {
            return result;
          }
        }
        if (right.hasNext()) {
          return RIGHT_IS_GREATER; // because it's longer
        }
        return 0;
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/LexicographicalOrdering.java

        Iterator<T> right = rightIterable.iterator();
        while (left.hasNext()) {
          if (!right.hasNext()) {
            return LEFT_IS_GREATER; // because it's longer
          }
          int result = elementOrder.compare(left.next(), right.next());
          if (result != 0) {
            return result;
          }
        }
        if (right.hasNext()) {
          return RIGHT_IS_GREATER; // because it's longer
        }
        return 0;
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java

        Iterator<Range<C>> itr = rangeSet.asRanges().iterator();
        Range<C> expectedSpan = null;
        if (itr.hasNext()) {
          expectedSpan = itr.next();
          while (itr.hasNext()) {
            expectedSpan = expectedSpan.span(itr.next());
          }
        }
    
        try {
          Range<C> span = rangeSet.span();
          assertEquals(expectedSpan, span);
        } catch (NoSuchElementException e) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

      public void testIteratorRemoveOnly() {
        Set<Entry<K, V>> entrySet = getMap().entrySet();
        Iterator<Entry<K, V>> entryItr = entrySet.iterator();
        assertEquals(e0(), entryItr.next());
        entryItr.remove();
        assertTrue(getMap().isEmpty());
        assertFalse(entrySet.contains(e0()));
      }
    
      @CollectionSize.Require(SEVERAL)
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 16 03:23:31 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

      public void testIteratorRemoveOnly() {
        Set<Entry<K, V>> entrySet = getMap().entrySet();
        Iterator<Entry<K, V>> entryItr = entrySet.iterator();
        assertEquals(e0(), entryItr.next());
        entryItr.remove();
        assertTrue(getMap().isEmpty());
        assertFalse(entrySet.contains(e0()));
      }
    
      @CollectionSize.Require(SEVERAL)
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 16 03:23:31 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  8. internal/dsync/dsync_test.go

    		mu := PaddedMutex{NewDRWMutex(ds, "")}
    		for pb.Next() {
    			mu.Lock(id, source)
    			mu.Unlock(b.Context())
    		}
    	})
    }
    
    func benchmarkMutex(b *testing.B, slack, work bool) {
    	b.ResetTimer()
    	b.ReportAllocs()
    
    	mu := NewDRWMutex(ds, "")
    	if slack {
    		b.SetParallelism(10)
    	}
    	b.RunParallel(func(pb *testing.PB) {
    		foo := 0
    		for pb.Next() {
    			mu.Lock(id, source)
    			mu.Unlock(b.Context())
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java

        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<E> iterator = collection.iterator();
              assertTrue(collection.remove(e0()));
              iterator.next();
            });
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemove_notPresent() {
        assertFalse("remove(notPresent) should return false", collection.remove(e3()));
        expectUnchanged();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 11 21:04:02 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

        assertEquals(mapEntry(k0(), v0()), iterator.next());
        iterator.remove();
        assertTrue(multimap().isEmpty());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testEntriesRemainValidAfterRemove() {
        Iterator<Entry<K, V>> iterator = multimap().entries().iterator();
        Entry<K, V> entry = iterator.next();
        K key = entry.getKey();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 21:10:54 GMT 2025
    - 5.4K bytes
    - Click Count (0)
Back to Top