- Sort Score
- Num 10 results
- Language All
Results 141 - 150 of 383 for factory (0.09 seconds)
-
android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
private Iterable<LoadingCache<Object, Object>> caches() { // lots of different ways to configure a LoadingCache CacheBuilderFactory factory = cacheFactory(); return Iterables.transform( factory.buildAllPermutations(), new Function<CacheBuilder<Object, Object>, LoadingCache<Object, Object>>() { @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 15.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ListsTest.java
public void testNewLinkedListEmpty() { @SuppressWarnings("UseCollectionConstructor") // test of factory method LinkedList<Integer> list = Lists.newLinkedList(); assertEquals(emptyList(), list); } public void testNewLinkedListFromCollection() { @SuppressWarnings("UseCollectionConstructor") // test of factory method LinkedList<Integer> list = Lists.newLinkedList(SOME_COLLECTION);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 35.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapsTest.java
HashMap<Integer, Integer> map = Maps.newHashMap(); assertEquals(emptyMap(), map); } public void testHashMapWithInitialMap() { Map<String, Integer> original = new TreeMap<>(); original.put("a", 1); original.put("b", 2); original.put("c", 3); @SuppressWarnings("UseCollectionConstructor") // test of factory method
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 22:56:33 GMT 2025 - 62.7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/features/CollectionFeature.java
* collections. If not specified, the collection tests will examine the value returned by {@link * Object#toString}. */ NON_STANDARD_TOSTRING, /** * Indicates that the constructor or factory method of a collection, usually an immutable set, * throws an {@link IllegalArgumentException} when presented with duplicate elements instead ofCreated: 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/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/HasKotlinFlagsMetadataQuery.kt
fun match(kmProperty: KmProperty): Boolean fun match(kmFunction: KmFunction): Boolean fun match(kmPropertyAccessorAttributes: KmPropertyAccessorAttributes): Boolean companion object Factory { fun visibility(visibility: Visibility): AttributePredicate = object: AttributePredicate { override fun match(kmClass: KmClass) = kmClass.visibility == visibility
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Jul 04 09:21:38 GMT 2025 - 5.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/TopKSelector.java
import org.jspecify.annotations.Nullable; /** * An accumulator that selects the "top" {@code k} elements added to it, relative to a provided * comparator. "Top" can mean the greatest or the lowest elements, specified in the factory used to * create the {@code TopKSelector} instance. * * <p>If your input data is available as an {@link Iterable} or {@link Iterator}, prefer {@link
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Aug 31 13:15:26 GMT 2025 - 11.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/EnumMultisetTest.java
ms.add(Color.RED, 2); Set<Object> uniqueEntries = Sets.newIdentityHashSet(); uniqueEntries.addAll(ms.entrySet()); assertEquals(3, uniqueEntries.size()); } // Wrapper of EnumMultiset factory methods, because we need to skip create(Class). // create(Enum1.class) is equal to create(Enum2.class) but testEquals() expects otherwise. // For the same reason, we need to skip create(Iterable, Class).
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6K bytes - Click Count (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild.minify.gradle.kts
} } } afterEvaluate { // Without afterEvaluate, configurations.all runs before the configurations' roles are set. // This is yet another reason we need configuration factory methods. // workaround for https://github.com/gradle/gradle/issues/12459 // note: constraints can't be used here because they end up in gradle module metadataCreated: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Dec 25 16:18:05 GMT 2025 - 5.6K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java
import java.lang.reflect.Method; import java.util.List; import java.util.Map.Entry; import org.junit.Ignore; /** * A generic JUnit test which tests creation (typically through a constructor or static factory * method) of a map. Can't be invoked directly; please see {@link * com.google.common.collect.testing.MapTestSuiteBuilder}. * * @author Chris Povirk * @author Kevin Bourrillion */ @GwtCompatible
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
* parameter. */ private fun sampleValuesMap(): Map<Class<*>, Any> { TestValueFactory().use { factory -> val address = factory.newAddress("a") val route = factory.newRoute(address) val pool = factory.newConnectionPool() val url = "https://example.com/".toHttpUrl() val request = Request(url = url) val response = Response
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 70.5K bytes - Click Count (0)