- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for IsMap (0.03 sec)
-
maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java
boolean isCollection = false; boolean isMap = false; boolean isProperties = false; if (!isArray) { try { // assuming Type is available in current ClassLoader isCollection = Collection.class.isAssignableFrom(Class.forName(param.getType())); isMap = Map.class.isAssignableFrom(Class.forName(param.getType()));
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue May 09 23:46:02 UTC 2023 - 6.8K bytes - Viewed (0) -
operator/pkg/util/reflect.go
return kindOf(value) == reflect.String } // IsPtr reports whether value is a ptr type. func IsPtr(value any) bool { return kindOf(value) == reflect.Ptr } // IsMap reports whether value is a map type. func IsMap(value any) bool { return kindOf(value) == reflect.Map } // IsMapPtr reports whether v is a map ptr type. func IsMapPtr(v any) bool { t := reflect.TypeOf(v)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 8.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/types_test.go
} if expT.GetListType() == nil { t.Errorf("got %v, wanted CEL list type", expT) } } func TestTypes_MapType(t *testing.T) { mp := NewMapType(StringType, IntType, -1) if !mp.IsMap() { t.Error("map type not identifiable as map") } if mp.TypeName() != "map" { t.Errorf("got %s, wanted map", mp.TypeName()) } if mp.DefaultValue() == nil { t.Error("got nil zero value for map type") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 2.1K bytes - Viewed (0) -
operator/pkg/tpath/struct.go
} // Set sets out with the value at path from node. out is not set if the path doesn't exist or the value is nil. func Set(val, out any) error { // Special case: map out type must be set through map ptr. if util.IsMap(val) && util.IsMapPtr(out) { reflect.ValueOf(out).Elem().Set(reflect.ValueOf(val)) return nil } if util.IsSlice(val) && util.IsSlicePtr(out) { reflect.ValueOf(out).Elem().Set(reflect.ValueOf(val))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 4.4K bytes - Viewed (0) -
pkg/proto/merge/merge.go
} src.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { switch { case fd.IsList(): o.mergeList(dst.Mutable(fd).List(), v.List(), fd) case fd.IsMap(): o.mergeMap(dst.Mutable(fd).Map(), v.Map(), fd.MapValue()) case fd.Message() != nil: mergeFn, exists := o.customMergeFn[fd.Message().FullName()] if exists { mergeFn(dst.Mutable(fd).Message(), v.Message())
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Dec 21 17:31:22 UTC 2022 - 4.8K bytes - Viewed (0)