- Sort Score
- Num 10 results
- Language All
Results 331 - 340 of 623 for Apply (0.02 seconds)
-
guava-tests/test/com/google/common/collect/ForwardingSetTest.java
public void testForwarding() { new ForwardingWrapperTester() .testForwarding( Set.class, new Function<Set, Set>() { @Override public Set apply(Set delegate) { return wrap(delegate); } }); } public void testEquals() { Set<String> set1 = ImmutableSet.of("one");
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 5.1K bytes - Click Count (0) -
internal/color/color.go
package color import ( "fmt" "github.com/fatih/color" ) // global colors. var ( // Check if we stderr, stdout are dumb terminals, we do not apply // ansi coloring on dumb terminals. IsTerminal = func() bool { return !color.NoColor } Bold = func() func(format string, a ...any) string { if IsTerminal() { return color.New(color.Bold).SprintfFunc()
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 3.6K bytes - Click Count (0) -
build-logic-commons/basics/src/test/kotlin/gradlebuild/basics/tasks/PackageListGeneratorIntegrationTest.kt
val implementation = PackageListGenerator.Implementation(DEFAULT_EXCLUDES_FOR_TEST, DEFAULT_INCLUDES_FOR_TEST) private fun getRelocatedPackages(files: Sequence<Path>): List<String> = mutableListOf<String>().apply { implementation.collectPackages(files.toList()).dump(false, this::add) } @Test fun `generates a curated list of package prefixes from directories`() {
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Mar 25 08:50:34 GMT 2025 - 5.1K bytes - Click Count (0) -
build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-public-libraries.gradle.kts
moduleBaseDir.deleteRecursively() } } doLast { localRepository.get().file("org/gradle/${baseName.get()}/maven-metadata.xml").asFile.apply { writeText(readText().replace("\\Q<lastUpdated>\\E\\d+\\Q</lastUpdated>\\E".toRegex(), "<lastUpdated>${Year.now().value}0101000000</lastUpdated>")) }
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Oct 30 16:56:31 GMT 2025 - 5.7K bytes - Click Count (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest.kt
} /** * Create projects and files required for plugins applied to the project (including transitively applied plugins). * These files are not required to run the task itself, but are required to apply the binary-compatibility plugin. */ protected fun setupPluginRequirements() { projectDir.resolve("version.txt").writeText("9999999.0") // All released versions should be lower than thisCreated: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Nov 29 14:03:44 GMT 2024 - 6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Multisets.java
@SuppressWarnings("unchecked") // element is equal to an E E e = (E) element; return predicate.apply(e) ? count : 0; } return 0; } @Override public int add(@ParametricNullness E element, int occurrences) { checkArgument( predicate.apply(element), "Element %s does not match predicate %s", element, predicate); return unfiltered.add(element, occurrences);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 41.3K bytes - Click Count (0) -
guava/src/com/google/common/collect/Multisets.java
@SuppressWarnings("unchecked") // element is equal to an E E e = (E) element; return predicate.apply(e) ? count : 0; } return 0; } @Override public int add(@ParametricNullness E element, int occurrences) { checkArgument( predicate.apply(element), "Element %s does not match predicate %s", element, predicate); return unfiltered.add(element, occurrences);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 41.2K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java
public void testPutAllNullValueSingle_unsupported() { multimap().putAll(k1(), newArrayList((V) null)); expectUnchanged(); } // In principle, it would be nice to apply these two tests to keys with existing values, too. @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) public void testPutAllNullValueNullLast_unsupported() { int size = getNumElements();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 7.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt
// Figure out the next connection spec in case we need a retry. retryTlsConnection = tlsEquipPlan.nextConnectionSpec(connectionSpecs, sslSocket) connectionSpec.apply(sslSocket, isFallback = tlsEquipPlan.isTlsFallback) connectTls(sslSocket, connectionSpec) call.eventListener.secureConnectEnd(call, handshake) } else { javaNetSocket = rawSocketCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Oct 08 03:50:05 GMT 2025 - 19.3K bytes - Click Count (2) -
impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java
} // Check if consumer POM flattening is disabled if (!flattenEnabled) { // When flattening is disabled, treat non-POM projects like parent POMs // Apply only basic transformations without flattening dependency management // However, BOMs still need special handling to transform packaging from "bom" to "pom" if (isBom) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Nov 27 07:40:26 GMT 2025 - 21.2K bytes - Click Count (0)