Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for getOrDefault (0.55 sec)

  1. 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)
  2. 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)
  3. .teamcity/src/main/kotlin/configurations/StageTriggers.kt

            triggers.add(StageTrigger(model, stage, prevStage, null, allDependencies))
    
            stageWithOsTriggers.getOrDefault(stage.stageName, emptyList()).forEach { targetOs ->
                val dependencies = allDependencies.filter { it.os == targetOs }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Nov 06 08:08:13 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. 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)
  5. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupRootPlugin.kt

                        (taskPathToReportsInExtension.keys + taskPathToReports.keys).associateWith {
                            taskPathToReportsInExtension.getOrDefault(it, emptyList()) + taskPathToReports.getOrDefault(it, emptyList())
                        }
                    }
                }
                project.gradle.serviceOf<BuildEventsListenerRegistry>().onTaskCompletion(testFilesCleanupService)
            }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Jul 06 10:57:13 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/entity/ParamMap.java

        @Override
        public int hashCode() {
            return parent.hashCode();
        }
    
        @Override
        public V getOrDefault(final Object key, final V defaultValue) {
            final V value = parent.get(key);
            if (value != null) {
                return value;
            }
            return parent.getOrDefault(toCamelCase(key), defaultValue);
        }
    
        @Override
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/es/config/exentity/WebConfigTest.java

            FessConfig fessConfig = new FessConfig.SimpleImpl() {
                @Override
                public String getSystemProperty(final String key, final String defaultValue) {
                    return systemPropMap.getOrDefault(key, defaultValue);
                }
    
                @Override
                public boolean isCrawlerIgnoreRobotsTxt() {
                    return false;
                }
    
                @Override
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu May 09 09:48:04 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/FilenameExtractor.java

            if (in == null) {
                throw new CrawlerSystemException("The inputstream is null.");
            }
            final String content = params.getOrDefault(ExtractData.RESOURCE_NAME_KEY, StringUtil.EMPTY);
            try {
                return new ExtractData(content);
            } catch (final Exception e) {
                throw new ExtractException(e);
            }
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java

        this.delegateMap = delegateMap;
        this.entries = entries;
        this.size = size;
      }
    
      @Override
      public int count(@CheckForNull Object element) {
        return delegateMap.getOrDefault(element, 0);
      }
    
      @LazyInit @CheckForNull private transient ImmutableSet<E> elementSet;
    
      @Override
      public ImmutableSet<E> elementSet() {
        ImmutableSet<E> result = elementSet;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. 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)
Back to top