Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for IsMap (0.04 sec)

  1. test/named.go

    	isInt(Int(0))
    	i = 10
    	asInt(*&i)
    	isInt(*&i)
    	asInt(23)
    	asInt(Int(f))
    	isInt(Int(f))
    
    	asMap(m)
    	isMap(m)
    	asMap(nil)
    	m = nil
    	asMap(make(Map))
    	isMap(make(Map))
    	asMap(*&m)
    	isMap(*&m)
    	asMap(Map(nil))
    	isMap(Map(nil))
    	asMap(Map{})
    	isMap(Map{})
    
    	asSlice(slice)
    	isSlice(slice)
    	asSlice(make(Slice, 5))
    	isSlice(make(Slice, 5))
    	asSlice([]byte{1, 2, 3})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 4.6K bytes
    - Viewed (0)
  2. 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)
  3. staging/src/k8s.io/apiserver/pkg/cel/types.go

    func (t *DeclType) IsList() bool {
    	return t.KeyType == nil && t.ElemType != nil && t.Fields == nil
    }
    
    // IsMap returns whether the declaration is a 'map' type which defines parameterized key and
    // element types, but not fields.
    func (t *DeclType) IsMap() bool {
    	return t.KeyType != nil && t.ElemType != nil && t.Fields == nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 18K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/html/template/attr.go

    	"href":            contentTypeURL,
    	"hreflang":        contentTypePlain,
    	"http-equiv":      contentTypeUnsafe,
    	"icon":            contentTypeURL,
    	"id":              contentTypePlain,
    	"ismap":           contentTypePlain,
    	"keytype":         contentTypeUnsafe,
    	"kind":            contentTypePlain,
    	"label":           contentTypePlain,
    	"lang":            contentTypePlain,
    	"language":        contentTypeUnsafe,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 6.2K bytes
    - Viewed (0)
  7. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiExtensionsGenerator.kt

        this?.takeIf { it.isNotEmpty() }
            ?.joinToString(separator = ", ", prefix = "<", postfix = ">", transform = transform)
            ?: ""
    
    
    private
    val ApiTypeUsage.isGroovyNamedArgumentMap
        get() = isMap && (
            typeArguments.all { it.isAny }
                || typeArguments.all { it.isStarProjectionTypeUsage }
                || (typeArguments[0].isString && (typeArguments[1].isStarProjectionTypeUsage || typeArguments[1].isAny))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 21:41:53 UTC 2023
    - 18.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. src/cmd/compile/internal/walk/walk.go

    func mapfn(name string, t *types.Type, isfat bool) ir.Node {
    	if !t.IsMap() {
    		base.Fatalf("mapfn %v", t)
    	}
    	if mapfast(t) == mapslow || isfat {
    		return typecheck.LookupRuntime(name, t.Key(), t.Elem(), t.Key(), t.Elem())
    	}
    	return typecheck.LookupRuntime(name, t.Key(), t.Elem(), t.Elem())
    }
    
    func mapfndel(name string, t *types.Type) ir.Node {
    	if !t.IsMap() {
    		base.Fatalf("mapfn %v", t)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top