- Sort Score
- Num 10 results
- Language All
Results 241 - 250 of 1,122 for Collection (0.05 seconds)
-
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
* half of that is more awkward to arrange... */ private static <T> Iterable<T> iterable(Collection<T> collection) { // return collection::iterator; return new Iterable<T>() { @Override public Iterator<T> iterator() { return collection.iterator(); } }; } public void testEquals() { new EqualsTester()
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 21.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java
import java.util.Collection; import java.util.List; import org.jspecify.annotations.NullMarked; /** * Creates collections containing unhashable sample elements, to be tested. * * @author Regina O'Dell */ @GwtCompatible @NullMarked public abstract class TestUnhashableCollectionGenerator<T extends Collection<UnhashableObject>>
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 1.9K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableCollection.java
package com.google.common.collect; import java.util.Collection; import org.jspecify.annotations.Nullable; /** * A GWT-only class only used by GWT emulations. It is used to consolidate the definitions of method * delegation to save code size. * * @author Hayward Chan */ final class ForwardingImmutableCollection<E> extends ImmutableCollection<E> { final transient Collection<E> delegate;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 1.8K bytes - Click Count (0) -
guava/src/com/google/common/primitives/Doubles.java
* to primitives * @throws NullPointerException if {@code collection} or any of its elements is null * @since 1.0 (parameter was {@code Collection<Double>} before 12.0) */ public static double[] toArray(Collection<? extends Number> collection) { if (collection instanceof DoubleArrayAsList) { return ((DoubleArrayAsList) collection).toDoubleArray(); }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Oct 22 18:14:49 GMT 2025 - 27.6K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java
public boolean containsAll(Collection<?> c) { return map.entrySet().containsAll(c); } @Override public boolean removeAll(Collection<?> c) { return map.entrySet().removeAll(c); } @Override public boolean retainAll(Collection<?> c) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu May 22 16:18:11 GMT 2025 - 11.4K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java
@Override public Object[] toArray() { /* * ObjectArrays.toArrayImpl returns `@Nullable Object[]` rather than `Object[]` but only because * it can be used with collections that may contain null. This collection is a collection of * non-null elements, so we can treat it as a plain `Object[]`. */ @SuppressWarnings("nullness") Object[] result = ObjectArrays.toArrayImpl(this); return result; }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 15.5K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/ClasspathArtifactResolver.java
import javax.inject.Named; import javax.inject.Singleton; import java.io.FileNotFoundException; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import org.eclipse.aether.RepositorySystemSession; import org.eclipse.aether.artifact.Artifact; import org.eclipse.aether.impl.ArtifactResolver;
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 3.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 12.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTestSuiteBuilder.java
import com.google.common.collect.testing.testers.CollectionToStringTester; import java.util.Arrays; import java.util.Collection; import java.util.List; /** * Abstract superclass of all test-suite builders for collection interfaces. * * @author George van den Driessche */ @GwtIncompatible public abstract class AbstractCollectionTestSuiteBuilder<
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
Collection<String> c = ImmutableSortedMultiset.of(); assertSame(c, ImmutableSortedMultiset.copyOf(c)); } public void testCopyOf_shortcut_singleton() { Collection<String> c = ImmutableSortedMultiset.of("a"); assertSame(c, ImmutableSortedMultiset.copyOf(c)); } public void testCopyOf_shortcut_immutableMultiset() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 19.5K bytes - Click Count (0)