- Sort Score
- Result 10 results
- Languages All
Results 291 - 300 of 649 for iterator (0.24 sec)
-
guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java
public int size() { return deduped.length; } @Override public Iterator<String> iterator() { return MinimalCollection.of(deduped).iterator(); } }; } }) .named("AbstractSet") .withFeatures( CollectionFeature.NONE,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 19.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java
*/ Entry<?, ?>[] entries = new Entry<?, ?>[elements.length]; Map<K, Iterator<V>> valueIterators = new HashMap<>(); for (int i = 0; i < elements.length; i++) { @SuppressWarnings("unchecked") // These come from Entry<K, V> objects somewhere. K key = (K) elements[i]; Iterator<V> valueItr = valueIterators.get(key); if (valueItr == null) {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 26.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
assertThat(DoubleMath.mean(ImmutableList.of(11, -22, 44, -88).iterator())) .isWithin(1.0e-10) .of(-13.75); assertThat(DoubleMath.mean(ImmutableList.of(11).iterator())).isWithin(1.0e-10).of(11); assertThrows( IllegalArgumentException.class, () -> DoubleMath.mean(ImmutableList.<Integer>of().iterator())); } @GwtIncompatible // DoubleMath.mean
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/LockHeldAssertingSet.java
* * Similarly, we avoid having those methods *implemented* in terms of *other* TestSet methods * that will perform holdsLock assertions: * * - For iterator(), we can accomplish that by not overriding iterator() at all. That way, we * inherit an implementation that forwards to the delegate collection, which performs no * holdsLock assertions. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 4.3K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/toolchain/DefaultToolchain.java
StringBuilder builder = new StringBuilder(); builder.append("type:").append(getType()); builder.append('{'); Iterator<Map.Entry<String, RequirementMatcher>> providesIter = provides.entrySet().iterator(); while (providesIter.hasNext()) { Map.Entry<String, RequirementMatcher> provideEntry = providesIter.next();
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Feb 12 13:13:28 UTC 2025 - 4.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java
return getEntryNullReplaces().getValue(); } protected K getKeyForNullValue() { return getEntryNullReplaces().getKey(); } private Entry<K, V> getEntryNullReplaces() { Iterator<Entry<K, V>> entries = getSampleElements().iterator(); for (int i = 0; i < getNullLocation(); i++) { entries.next(); } return entries.next(); } protected void initMultimapWithNullKey() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 6.1K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/RemovalCause.java
* the License. */ package com.google.common.cache; import com.google.common.annotations.GwtCompatible; import java.util.Iterator; import java.util.Map; import java.util.concurrent.ConcurrentMap; /** * The reason why a cached entry was removed. * * @author Charles Fry * @since 10.0 */ @GwtCompatible
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 2.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java
public boolean contains(@Nullable Object object) { return forward.contains(object); } @Override public int size() { return forward.size(); } @Override public UnmodifiableIterator<E> iterator() { return forward.descendingIterator(); } @Override ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive) { return forward.tailSet(toElement, inclusive).descendingSet(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassLoaderUtilTest.java
import static org.hamcrest.CoreMatchers.notNullValue; import static org.hamcrest.CoreMatchers.sameInstance; import static org.junit.Assert.assertThat; import java.net.URL; import java.net.URLClassLoader; import java.util.Iterator; import junit.framework.TestCase; import org.junit.Test; /** * @author koichik */ public class ClassLoaderUtilTest { /** * @throws Exception */ @TestRegistered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractIndexedListIterator.java
private int position; /** Returns the element with the specified index. This method is called by {@link #next()}. */ @ParametricNullness protected abstract E get(int index); /** * Constructs an iterator across a sequence of the given size whose initial position is 0. That * is, the first call to {@link #next()} will return the first element (or throw {@link * NoSuchElementException} if {@code size} is zero). *Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.2K bytes - Viewed (0)