- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for getOrDefault (0.08 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java
assertEquals( "getOrDefault(present, def) should return the associated value", v0(), getMap().getOrDefault(k0(), v3())); } @CollectionSize.Require(absent = ZERO) public void testGetOrDefault_presentNullDefault() { assertEquals( "getOrDefault(present, null) should return the associated value", v0(), getMap().getOrDefault(k0(), null)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 4.5K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivator.java
.getOrDefault("os.name", Os.OS_NAME) .toLowerCase(Locale.ENGLISH); String actualOsArch = context.getSystemProperties() .getOrDefault("os.arch", Os.OS_ARCH) .toLowerCase(Locale.ENGLISH); String actualOsVersion = context.getSystemProperties() .getOrDefault("os.version", Os.OS_VERSION)
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.2K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java
} private MavenProject getProject(Artifact artifact) { return getAllProjects() .getOrDefault(artifact.getGroupId(), Collections.emptyMap()) .getOrDefault(artifact.getArtifactId(), Collections.emptyMap()) .getOrDefault(artifact.getBaseVersion(), null); } // groupId -> (artifactId -> (version -> project)))
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 22.3K bytes - Viewed (0) -
.teamcity/src/main/kotlin/configurations/StageTriggers.kt
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Nov 06 08:08:13 UTC 2024 - 5.8K bytes - Viewed (0) -
cni/pkg/install/kubeconfig.go
} protocol := model.GetOrDefault(cfg.K8sServiceProtocol, "https") cluster := &api.Cluster{ Server: fmt.Sprintf("%s://%s", protocol, net.JoinHostPort(cfg.K8sServiceHost, cfg.K8sServicePort)), } if cfg.SkipTLSVerify { // User explicitly opted into insecure. cluster.InsecureSkipTLSVerify = true } else { caFile := model.GetOrDefault(cfg.KubeCAFile, cfg.K8sServiceAccountPath+"/ca.crt")
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 18:38:14 UTC 2024 - 4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 10.8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
} sessionBuilder.setAuthenticationSelector(authSelector); Object transport = mergedProps.getOrDefault(Constants.MAVEN_RESOLVER_TRANSPORT, MAVEN_RESOLVER_TRANSPORT_DEFAULT); if (MAVEN_RESOLVER_TRANSPORT_DEFAULT.equals(transport)) { // The "default" mode (user did not set anything) from now on defaults to AUTO
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 25.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMap.java
* * - a `getFooOrDefault(@CheckForNull Foo defaultValue)` method that returns * `map.getOrDefault(FOO_KEY, defaultValue)` * * - a call that consults a chain of maps, as in `mapA.getOrDefault(key, mapB.getOrDefault(key, * ...))` * * So it makes sense for the parameter (and thus the return type) to be @CheckForNull. * * Two other points: *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 41.5K bytes - Viewed (0) -
build-logic/cleanup/src/main/kotlin/gradlebuild/testing/services/BuildBucketProvider.kt
val properties = Properties() val ret = mutableMapOf<String, MutableList<String>>() properties.load(StringReader(content)) properties.forEach { key, value -> val list = ret.getOrDefault(value, mutableListOf()) list.add(key!!.toString()) ret[value!!.toString()] = list } return ret } interface BuildBucketProvider {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Jun 28 08:29:28 UTC 2024 - 4.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/entity/QueryContext.java
fieldLogMap.put(field, list); } list.add(text); } public List<String> getDefaultKeyword() { if (fieldLogMap != null) { return fieldLogMap.getOrDefault(Constants.DEFAULT_FIELD, Collections.emptyList()); } return Collections.emptyList(); } public void addHighlightedQuery(final String text) { if (highlightedQuerySet != null) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 5.8K bytes - Viewed (0)