- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 110 for defaultValues (0.08 seconds)
-
android/guava/src/com/google/common/base/Optional.java
/** * Returns the contained instance if it is present; {@code defaultValue} otherwise. If no default * value should be required because the instance is known to be present, use {@link #get()} * instead. For a default value of {@code null}, use {@link #orNull}. * * <p>Note about generics: The signature {@code public T or(T defaultValue)} is overlyCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 15.4K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
* determined. */ public static <T> @Nullable T get(Class<T> type) { T defaultValue = DEFAULTS.getInstance(type); if (defaultValue != null) { return defaultValue; } Class<? extends T> implementation = getImplementation(type); if (implementation != null) { return get(implementation); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 21.4K bytes - Click Count (0) -
callbacks/create_test.go
}, }, ReflectValue: reflect.ValueOf(dest), Dest: dest, } stmt.Schema = s values := ConvertToCreateValues(stmt) expected := clause.Values{ // column has value + defaultValue column has value (which should have a stable order) Columns: []clause.Column{{Name: "name"}, {Name: "email"}, {Name: "age"}, {Name: "id"}}, Values: [][]interface{}{ {"alice", "email", 18, 1}, {"bob", "email", 19, 2},
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Mar 18 05:48:42 GMT 2024 - 1.4K bytes - Click Count (0) -
tests/migrate_test.go
columnType, err := findColumnType(tableName, "content") AssertEqual(t, err, nil) defVal, ok := columnType.DefaultValue() AssertEqual(t, defVal, "null") AssertEqual(t, ok, true) columnType2, err := findColumnType(tableName, "active") AssertEqual(t, err, nil) defVal, ok = columnType2.DefaultValue() bv, _ := strconv.ParseBool(defVal) AssertEqual(t, bv, false) AssertEqual(t, ok, true)
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:49:01 GMT 2026 - 66.3K bytes - Click Count (0) -
guava/src/com/google/common/base/Optional.java
/** * Returns the contained instance if it is present; {@code defaultValue} otherwise. If no default * value should be required because the instance is known to be present, use {@link #get()} * instead. For a default value of {@code null}, use {@link #orNull}. * * <p>Note about generics: The signature {@code public T or(T defaultValue)} is overlyCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 15.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
* determined. */ public static <T> @Nullable T get(Class<T> type) { T defaultValue = DEFAULTS.getInstance(type); if (defaultValue != null) { return defaultValue; } Class<? extends T> implementation = getImplementation(type); if (implementation != null) { return get(implementation); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 20.9K bytes - Click Count (0) -
build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/util/Util.java
import java.util.Optional; import java.util.function.Supplier; public class Util { public static boolean getBooleanProperty(String property, boolean defaultValue) { String propertyValue = System.getProperty(property); if (propertyValue == null) { return defaultValue; } if ("true".equals(propertyValue)) { return true; } else if ("false".equals(propertyValue)) {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jul 27 15:18:50 GMT 2021 - 5.1K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java
promptBuilder .createConfirmPromp() .name("confirm") .message("Are values above correct?") .defaultValue(ConfirmChoice.ConfirmationValue.YES) .addPrompt(); return promptBuilder; } protected PromptBuilder dispatcherPrompt(PromptBuilder promptBuilder) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jun 11 13:14:09 GMT 2025 - 12K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/io/xpp3/CoreExtensionsXpp3Reader.java
* * @param s a s object. * @param defaultValue a defaultValue object. * @param parser a parser object. * @param attribute a attribute object. * @throws XmlPullParserException XmlPullParserException if * any. * @return boolean */ private boolean getBooleanValue(String s, String attribute, XmlPullParser parser, String defaultValue) throws XmlPullParserException {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Oct 27 13:24:03 GMT 2025 - 25.3K bytes - Click Count (0) -
guava/src/com/google/common/base/Defaults.java
* {@code void}, {@code null} is returned. */ @SuppressWarnings({ "unchecked", "BooleanLiteral" // `(T) false` would produce an error }) public static <T> @Nullable T defaultValue(Class<T> type) { checkNotNull(type); if (type.isPrimitive()) { if (type == boolean.class) { return (T) Boolean.FALSE; } else if (type == char.class) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 02 19:58:40 GMT 2026 - 2.2K bytes - Click Count (0)