Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for IsMap (0.1 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. operator/pkg/tpath/tree.go

    		}
    		// TODO: The case of deleting a list.list.node element is not currently supported.
    		return fmt.Errorf("cannot delete path: unsupported parent.parent type %T for delete", nc.Parent.Parent.Node)
    	case util.IsMap(nc.Parent.Node):
    		return util.DeleteFromMap(nc.Parent.Node, nc.Parent.KeyToChild)
    	default:
    	}
    	return fmt.Errorf("cannot delete path: unsupported parent type %T for delete", nc.Parent.Node)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/cel/value.go

    }
    
    // Equal returns true if the maps are of the same size, have the same keys, and the key-values
    // from each map are equal.
    func (m *MapValue) Equal(other ref.Val) ref.Val {
    	oMap, isMap := other.(traits.Mapper)
    	if !isMap {
    		return types.MaybeNoSuchOverloadErr(other)
    	}
    	if m.Size() != oMap.Size() {
    		return types.False
    	}
    	for name, field := range m.fieldMap {
    		k := types.String(name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 20.5K bytes
    - Viewed (0)
Back to top