Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 106 for defaultValues (0.46 seconds)

  1. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        throw new UnsupportedOperationException();
      }
    
      private <T> T pickInstance(T[] instances, T defaultValue) {
        return pickInstance(Arrays.asList(instances), defaultValue);
      }
    
      private <T> T pickInstance(Collection<T> instances, T defaultValue) {
        if (instances.isEmpty()) {
          return defaultValue;
        }
        // generateInt() is 1-based.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  2. internal/logger/config.go

    		AuditKafka:   make(map[string]kafka.Config),
    	}
    
    	return cfg
    }
    
    func getCfgVal(envName, key, defaultValue string) string {
    	if key != config.Default {
    		envName = envName + config.Default + key
    	}
    	return env.Get(envName, defaultValue)
    }
    
    func lookupLegacyConfigForSubSys(ctx context.Context, subSys string) Config {
    	cfg := NewConfig()
    	switch subSys {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 18.7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/misc/DynamicProperties.java

        @Override
        public Object get(final Object key) {
            return getProperties().get(key);
        }
    
        @Override
        public String getProperty(final String key, final String defaultValue) {
            return getProperties().getProperty(key, defaultValue);
        }
    
        @Override
        public String getProperty(final String key) {
            return getProperties().getProperty(key);
        }
    
        @Override
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Jul 05 00:11:05 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt

      )
      fun handshake(): Handshake? = handshake
    
      fun headers(name: String): List<String> = headers.values(name)
    
      @JvmOverloads
      fun header(
        name: String,
        defaultValue: String? = null,
      ): String? = headers[name] ?: defaultValue
    
      @JvmName("-deprecated_headers")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "headers"),
        level = DeprecationLevel.ERROR,
      )
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jul 28 14:39:28 GMT 2025
    - 18.1K bytes
    - Click Count (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

      }
    
      @Override
      public final @Nullable V getOrDefault(@Nullable Object key, @Nullable V defaultValue) {
        V result = get(key);
        // TODO(b/192579700): Use a ternary once it no longer confuses our nullness checker.
        if (result != null) {
          return result;
        } else {
          return defaultValue;
        }
      }
    
      private transient @Nullable ImmutableSet<Entry<K, V>> cachedEntrySet = null;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 15:51:42 GMT 2026
    - 17.2K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/testing/NullPointerTester.java

        // We assume that all defaults are generics-safe, even if they aren't,
        // we take the risk.
        @SuppressWarnings("unchecked")
        T defaultValue = (T) defaults.getInstance(type.getRawType());
        if (defaultValue != null) {
          return defaultValue;
        }
        @SuppressWarnings("unchecked") // All arbitrary instances are generics-safe
        T arbitrary = (T) ArbitraryInstances.get(type.getRawType());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/ImmutableMap.java

        /*
         * Even though it's weird to pass a defaultValue that is null, some callers do so. Those who
         * pass a literal "null" should probably just use `get`, but I would expect other callers to
         * pass an expression that *might* be null. This could happen with:
         *
         * - a `getFooOrDefault(@Nullable Foo defaultValue)` method that returns
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 44.7K bytes
    - Click Count (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

         *
         * @param key the property key.
         * @param defaultValue a default value.
         * @return The property value of the default value
         */
        public String getProperty(String key, String defaultValue) {
            if (this.get(key) != null) {
                return this.get(key);
            }
            return defaultValue;
        }
    
        @Override
        public Set<Entry<String, String>> entrySet() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 38.4K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/props/MavenProperties.java

         *
         * @param key the property key.
         * @param defaultValue a default value.
         * @return The property value of the default value
         */
        public String getProperty(String key, String defaultValue) {
            if (this.get(key) != null) {
                return this.get(key);
            }
            return defaultValue;
        }
    
        @Override
        public Set<Entry<String, String>> entrySet() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 09:03:48 GMT 2025
    - 38.5K bytes
    - Click Count (0)
  10. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java

            properties.load(new StringReader(TEST_PROPERTIES));
    
            String test = properties.getProperty("test");
            assertEquals("test", test);
    
            String defaultValue = properties.getProperty("notfound", "default");
            assertEquals("default", defaultValue);
    
            properties.setProperty("another", "another");
            Object o1 = properties.getProperty("another");
            assertEquals("another", o1);
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Mar 09 14:29:03 GMT 2026
    - 16.3K bytes
    - Click Count (0)
Back to Top