- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 1,493 for collection (0.06 seconds)
-
android/guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java
} return derivedSuites; } private static final class ReserializedSetGenerator<E> implements TestSetGenerator<E> { final OneSizeTestContainerGenerator<Collection<E>, E> gen; private ReserializedSetGenerator(OneSizeTestContainerGenerator<Collection<E>, E> gen) { this.gen = gen; } @Override public SampleElements<E> samples() { return gen.samples(); } @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 4.7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java
@SuppressWarnings("unchecked") V[] valuesArray = (V[]) elements; // Start with a suitably shaped collection of entries Collection<Entry<K, V>> originalEntries = mapGenerator.getSampleElements(elements.length); // Create a copy of that, with the desired value for each value Collection<Entry<K, V>> entries = new ArrayList<>(elements.length); int i = 0; for (Entry<K, V> entry : originalEntries) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 6.8K bytes - Click Count (2) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionForEachTester.java
public void testForEachUnknownOrder() { List<E> elements = new ArrayList<>(); collection.forEach(elements::add); Helpers.assertEqualIgnoringOrder(asList(createSamplesArray()), elements); } @CollectionFeature.Require(KNOWN_ORDER) public void testForEachKnownOrder() { List<E> elements = new ArrayList<>(); collection.forEach(elements::add); List<E> expected = Helpers.copyToList(getOrderedElements());
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 31 14:51:04 GMT 2024 - 2.2K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Result.java
* under the License. */ package org.apache.maven.model.building; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import static java.util.Collections.singleton; import static org.apache.maven.model.building.ModelProblem.Severity.ERROR; import static org.apache.maven.model.building.ModelProblem.Severity.FATAL; /**
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Mar 26 19:31:34 GMT 2025 - 6.9K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java
return MinimalCollection.of(e3(), e4()); } protected int getNumEntries() { return getNumElements(); } protected Collection<Entry<K, V>> getSampleEntries(int howMany) { return getSampleElements(howMany); } protected Collection<Entry<K, V>> getSampleEntries() { return getSampleElements(); } @Override protected void expectMissing(Entry<K, V>... entries) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Jan 18 02:54:30 GMT 2025 - 7.8K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/features/CollectionFeature.java
/** * For documenting collections that support no optional features, such as {@link * java.util.Collections#emptySet} */ NONE; private final Set<Feature<? super Collection>> implied; CollectionFeature(Feature<? super Collection>... implied) { this.implied = copyToSet(implied); } @Override public Set<Feature<? super Collection>> getImpliedFeatures() { return implied;Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Oct 30 16:15:19 GMT 2024 - 4.1K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ClassDocMethodsBuilder.java
import gradlebuild.docs.dsl.docbook.model.PropertyDoc; import gradlebuild.docs.dsl.source.model.MethodMetaData; import gradlebuild.docs.dsl.source.model.TypeMetaData; import org.w3c.dom.Element; import java.util.Collection; import java.util.HashSet; import java.util.List; import java.util.Set; public class ClassDocMethodsBuilder extends ModelBuilderSupport { private final JavadocConverter javadocConverter;Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 4.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractSetMultimap.java
@Override Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) { return new WrappedSet(key, (Set<V>) collection); } // Following Javadoc copied from SetMultimap. /** * {@inheritDoc} * * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns a * {@link Set}, instead of the {@link Collection} specified in the {@link Multimap} interface. */ @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Mar 20 13:05:10 GMT 2025 - 4.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ObjectArrays.java
* elements than the collection), the element in the array immediately following the end of the * collection is set to {@code null}. This is useful in determining the length of the collection * <i>only</i> if the caller knows that the collection does not contain any null elements. * * <p>This method returns the elements in the order they are returned by the collection's * iterator. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 09 15:48:28 GMT 2025 - 8.9K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSizeTester.java
import com.google.common.annotations.GwtCompatible; import com.google.common.collect.testing.AbstractCollectionTester; import org.junit.Ignore; /** * A generic JUnit test which tests {@code size()} operations on a collection. Can't be invoked * directly; please see {@link com.google.common.collect.testing.CollectionTestSuiteBuilder}. * * @author Kevin Bourrillion */ @GwtCompatibleCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 1.4K bytes - Click Count (0)