- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 391 for value_or (0.23 sec)
-
subprojects/core/src/main/java/org/gradle/internal/management/DependencyResolutionManagementInternal.java
public boolean useProjectRepositories() { return useProjectRepositories; } public static RepositoriesModeInternal of(RepositoriesMode mode) { return RepositoriesModeInternal.valueOf(mode.name()); } } enum RulesModeInternal { PREFER_PROJECT(true), PREFER_SETTINGS(false), FAIL_ON_PROJECT_RULES(false); private final boolean useProjectRules;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 2.8K bytes - Viewed (0) -
src/internal/reflectlite/set_test.go
func TestImplicitSetConversion(t *testing.T) { // Assume TestImplicitMapConversion covered the basics. // Just make sure conversions are being applied at all. var r io.Reader b := new(bytes.Buffer) rv := ValueOf(&r).Elem() rv.Set(ValueOf(b)) if r != b { t.Errorf("after Set: r=%T(%v)", r, r) } } var implementsTests = []struct { x any t any b bool }{ {new(*bytes.Buffer), new(io.Reader), true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 2.4K bytes - Viewed (0) -
src/internal/buildcfg/exp.go
// regardless of base. func expList(exp, base *goexperiment.Flags, all bool) []string { var list []string rv := reflect.ValueOf(exp).Elem() var rBase reflect.Value if base != nil { rBase = reflect.ValueOf(base).Elem() } rt := rv.Type() for i := 0; i < rt.NumField(); i++ { name := strings.ToLower(rt.Field(i).Name) val := rv.Field(i).Bool() baseVal := false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:38:52 UTC 2024 - 5.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/converter.go
} if v != nil { dv.Set(reflect.ValueOf(v)) } return nil } st := sv.Type() switch st.Kind() { case reflect.String: dv.Set(reflect.ValueOf(sv.String())) return nil case reflect.Bool: dv.Set(reflect.ValueOf(sv.Bool())) return nil case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: dv.Set(reflect.ValueOf(sv.Int())) return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 16:02:13 UTC 2023 - 24.9K bytes - Viewed (0) -
logger/sql.go
case string: vars[idx] = escaper + strings.ReplaceAll(v, escaper, escaper+escaper) + escaper default: rv := reflect.ValueOf(v) if v == nil || !rv.IsValid() || rv.Kind() == reflect.Ptr && rv.IsNil() { vars[idx] = nullStr } else if valuer, ok := v.(driver.Valuer); ok { v, _ = valuer.Value() convertParams(v, idx) } else if rv.Kind() == reflect.Ptr && !rv.IsZero() {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Mar 21 08:00:02 UTC 2024 - 5K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/jsonpath.go
// arguments. Thus "index x 1 2 3" is, in Go syntax, x[1][2][3]. Each // indexed item must be a map, slice, or array. func exists(item interface{}, indices ...interface{}) bool { v := reflect.ValueOf(item) for _, i := range indices { index := reflect.ValueOf(i) var isNil bool if v, isNil = indirect(v); isNil { return false } switch v.Kind() { case reflect.Array, reflect.Slice, reflect.String: var x int64
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 25 16:23:43 UTC 2022 - 4.3K bytes - Viewed (0) -
test/fixedbugs/issue31546.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 25 01:30:56 UTC 2019 - 364 bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/AbstractWritableResultsStore.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.8K bytes - Viewed (0) -
platforms/documentation/docs/src/samples/build-organization/composite-builds/basic/kotlin/my-utils/string-utils/src/main/java/org/sample/stringutils/Strings.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 318 bytes - Viewed (0) -
platforms/enterprise/enterprise/src/main/java/org/gradle/internal/enterprise/exceptions/ExceptionMetadataHelper.java
} if (t instanceof MultiCauseException) { metadata.put(METADATA_KEY_IS_MULTICAUSE, String.valueOf(true)); } if (t instanceof VerificationException) { metadata.put(METADATA_KEY_IS_VERIFICATION_EXCEPTION, String.valueOf(true)); } return metadata; } public static List<? extends Throwable> extractCauses(Throwable t) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jul 17 10:17:11 UTC 2023 - 4.1K bytes - Viewed (0)