- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 391 for value_or (0.1 sec)
-
operator/pkg/util/reflect.go
func InsertIntoMap(parentMap any, key any, value any) error { scope.Debugf("InsertIntoMap key=%v, value=%v, map=\n%v", key, value, parentMap) v := reflect.ValueOf(parentMap) kv := reflect.ValueOf(key) vv := reflect.ValueOf(value) if v.Type().Kind() == reflect.Ptr { v = v.Elem() } if v.Type().Kind() == reflect.Interface { v = v.Elem() } if v.Type().Kind() != reflect.Map {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 8.6K bytes - Viewed (0) -
test/typeparam/absdiff2.go
} // orderedAbs is a helper type that defines an Abs method for // a struct containing an ordered numeric type. type orderedAbs[T orderedNumeric] struct { Value_ T } func (a orderedAbs[T]) Abs() T { if a.Value_ < 0 { return -a.Value_ } return a.Value_ } // Field accesses through type parameters are disabled // until we have a more thorough understanding of the // implications on the spec. See issue #51576.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 09 21:26:42 UTC 2022 - 3.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/dict/mapping/ApiAdminDictMappingAction.java
throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToUpdateCrudTable(GLOBAL, String.valueOf(body.id))); return null; }).orElseGet(() -> { throwValidationErrorApi(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, String.valueOf(body.id))); return null; }); charMappingService.store(body.dictId, entity); return asJson(
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 7.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/dict/stemmeroverride/ApiAdminDictStemmeroverrideAction.java
throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToUpdateCrudTable(GLOBAL, String.valueOf(body.id))); return null; }).orElseGet(() -> { throwValidationErrorApi(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, String.valueOf(body.id))); return null; }); stemmerOverrideService.store(body.dictId, entity);
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 7.5K bytes - Viewed (0) -
guava/src/com/google/common/base/MoreObjects.java
return addUnconditionalHolder(name, String.valueOf(value)); } /** * Adds a name/value pair to the formatted output in {@code name=value} format. * * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add()}). */ @CanIgnoreReturnValue public ToStringHelper add(String name, char value) { return addUnconditionalHolder(name, String.valueOf(value)); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Oct 13 14:11:58 UTC 2023 - 15.9K bytes - Viewed (0) -
src/reflect/nih_test.go
func TestNotInHeapDeref(t *testing.T) { // See issue 48399. v := ValueOf((*nih)(nil)) v.Elem() shouldPanic("reflect: call of reflect.Value.Field on zero Value", func() { v.Elem().Field(0) }) v = ValueOf(&global_nih) if got := v.Elem().Field(1).Int(); got != 7 { t.Fatalf("got %d, want 7", got) } v = ValueOf((*nih)(unsafe.Pointer(new(int))))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 31 01:16:54 UTC 2022 - 1004 bytes - Viewed (0) -
test/fixedbugs/issue37716.go
m := reflect.MakeMap(reflect.MapOf(reflect.TypeOf(K{}), reflect.TypeOf(true))) m.SetMapIndex(reflect.ValueOf(k), reflect.ValueOf(true)) // The binary must not contain the type map[K]bool anywhere, or reflect.MapOf // will use that type instead of making a new one. So use an equivalent named type. type M map[K]bool var x M reflect.ValueOf(&x).Elem().Set(m) if !x[k] { panic("key not found") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 10 16:26:59 UTC 2020 - 872 bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
assertEquals(Integer.valueOf(0), ArbitraryInstances.get(int.class)); assertEquals(Integer.valueOf(0), ArbitraryInstances.get(Integer.class)); assertEquals(Long.valueOf(0), ArbitraryInstances.get(long.class)); assertEquals(Long.valueOf(0), ArbitraryInstances.get(Long.class)); assertEquals(Float.valueOf(0), ArbitraryInstances.get(float.class));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 22.1K bytes - Viewed (0) -
test/fixedbugs/issue35073a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 15:12:49 UTC 2023 - 497 bytes - Viewed (0) -
callbacks/helper_test.go
vm = make(visitMap) if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf(&t1)); loaded { t.Fatalf("loaded should be false") } if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf(&t1)); !loaded { t.Fatalf("loaded should be true") } // t1 already exist but t2 not if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf([]*testM{&t1, &t2, &t3})); loaded { t.Fatalf("loaded should be false") }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Mar 05 02:22:57 UTC 2024 - 3.4K bytes - Viewed (0)