- Sort Score
- Num 10 results
- Language All
Results 211 - 220 of 809 for iterate (0.08 seconds)
-
android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java
return ImmutableSet.copyOf(elements); } @Override protected <E extends Comparable<? super E>> Set<E> copyOf(Iterable<? extends E> elements) { return ImmutableSet.copyOf(elements); } @Override protected <E extends Comparable<? super E>> Set<E> copyOf(Iterator<? extends E> elements) { return ImmutableSet.copyOf(elements); } public void testCreation_allDuplicates() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 14.1K bytes - Click Count (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
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 30 14:15:36 GMT 2025 - 27.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/AndArtifactFilter.java
this.filters = new LinkedHashSet<>(filters); } @Override public boolean include(Artifact artifact) { boolean include = true; for (Iterator<ArtifactFilter> i = filters.iterator(); i.hasNext() && include; ) { ArtifactFilter filter = i.next(); if (!filter.include(artifact)) { include = false; } } return include;
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 2.3K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/GroupRepositoryMetadata.java
} public void addPluginMapping(String goalPrefix, String artifactId, String name) { List<Plugin> plugins = getMetadata().getPlugins(); boolean found = false; for (Iterator<Plugin> i = plugins.iterator(); i.hasNext() && !found; ) { Plugin plugin = i.next(); if (plugin.getPrefix().equals(goalPrefix)) { found = true; } } if (!found) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 2.8K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
// All collections are immutable empty. So safe for any type parameter. .put(Iterator.class, ImmutableSet.of().iterator()) .put(PeekingIterator.class, peekingIterator(ImmutableSet.of().iterator())) .put(ListIterator.class, ImmutableList.of().listIterator()) .put(Iterable.class, ImmutableSet.of()) .put(Collection.class, ImmutableList.of())Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 21.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MultimapsTest.java
} private static <T extends @Nullable Object> void assertUnmodifiableIterableInTandem( Iterable<T> unmodifiable, Iterable<T> modifiable) { UnmodifiableCollectionTests.assertIteratorIsUnmodifiable(unmodifiable.iterator()); UnmodifiableCollectionTests.assertIteratorsInOrder( unmodifiable.iterator(), modifiable.iterator()); } public void testInvertFrom() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 38.9K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/CacheStats.java
} /** * Returns the ratio of cache requests which were hits. This is defined as {@code hitCount / * requestCount}, or {@code 1.0} when {@code requestCount == 0}. Note that {@code hitRate + * missRate =~ 1.0}. */ public double hitRate() { long requestCount = requestCount(); return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount; } /**Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 12.6K bytes - Click Count (0) -
guava/src/com/google/common/cache/CacheStats.java
} /** * Returns the ratio of cache requests which were hits. This is defined as {@code hitCount / * requestCount}, or {@code 1.0} when {@code requestCount == 0}. Note that {@code hitRate + * missRate =~ 1.0}. */ public double hitRate() { long requestCount = requestCount(); return (requestCount == 0) ? 1.0 : (double) hitCount / requestCount; } /**Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 12.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt
set("b", "b1", "b2") val iterator = cache.snapshots() cache.remove("b") iterator.next().use { assertThat(it.key()).isEqualTo("a") } assertThat(iterator.hasNext()).isFalse() } @Test fun iteratorRemove() { set("a", "a1", "a2") val iterator = cache.snapshots() val a = iterator.next() a.close() iterator.remove()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Nov 01 12:18:11 GMT 2025 - 59.4K bytes - Click Count (0) -
.teamcity/.mvn/wrapper/maven-wrapper.jar
package org.apache.maven.wrapper.cli; public abstract synchronized class AbstractCommandLineC implements CommandLineConverter { public void AbstractCommandLineC(); public Object convert(Iterable) throws CommandLineArgumentE; public Object convert(ParsedCommandLine) throws CommandLineArgumentE; public Object convert(Iterable, Object) throws CommandLineArgumentE; protected abstract Object newInstance(); } org/apache/maven/wrapper/cli/AbstractPropertiesCo.class package org.apache.maven.wrapper.cli; public...Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Feb 26 01:48:39 GMT 2020 - 49.5K bytes - Click Count (0)