Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 102 for ArrayType (0.12 sec)

  1. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            assertThat(returnClass, is(sameClass(Object.class)));
        }
    
        /**
         * @throws Exception
         */
        public void testArray() throws Exception {
            final Method m1 = ArrayType.class.getMethod("arrayOfStringClass");
            final Type t1 = m1.getGenericReturnType();
            final Type t2 = GenericsUtil.getElementTypeOfArray(t1);
            assertThat(GenericsUtil.getRawClass(t2), is(sameClass(Class.class)));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/JavaPropertyReflectionUtil.java

                } else if (typeToInspect instanceof GenericArrayType) {
                    GenericArrayType arrayType = (GenericArrayType) typeToInspect;
                    typesToInspect.add(arrayType.getGenericComponentType());
                } else if (typeToInspect instanceof WildcardType) {
                    WildcardType wildcardType = (WildcardType) typeToInspect;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  3. src/internal/reflectlite/reflect_mirror_test.go

    import (
    	"fmt"
    	"go/ast"
    	"go/parser"
    	"go/token"
    	"io/fs"
    	"os"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    )
    
    var typeNames = []string{
    	"uncommonType",
    	"arrayType",
    	"chanType",
    	"funcType",
    	"interfaceType",
    	"ptrType",
    	"sliceType",
    	"structType",
    }
    
    type visitor struct {
    	m map[string]map[string]bool
    }
    
    func newVisitor() visitor {
    	v := visitor{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 21:11:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/nodes_test.go

    	// ListExpr: tested via multi-value const/var declarations
    }
    
    var types = []test{
    	{"Operation", `@*T`},
    	{"Operation", `@*struct{}`},
    
    	{"ArrayType", `@[10]T`},
    	{"ArrayType", `@[...]T`},
    
    	{"SliceType", `@[]T`},
    	{"DotsType", `@...T`},
    	{"StructType", `@struct{}`},
    	{"InterfaceType", `@interface{}`},
    	{"FuncType", `func@()`},
    	{"MapType", `@map[T]T`},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 18:45:06 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              }
            }
          }
        }
        return null;
      }
    
      private static <T> T createEmptyArray(Class<T> arrayType) {
        // getComponentType() is non-null because we call createEmptyArray only with an array type.
        return arrayType.cast(Array.newInstance(requireNonNull(arrayType.getComponentType()), 0));
      }
    
      // Internal implementations of some classes, with public default constructor that get() needs.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 21K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              }
            }
          }
        }
        return null;
      }
    
      private static <T> T createEmptyArray(Class<T> arrayType) {
        // getComponentType() is non-null because we call createEmptyArray only with an array type.
        return arrayType.cast(Array.newInstance(requireNonNull(arrayType.getComponentType()), 0));
      }
    
      // Internal implementations of some classes, with public default constructor that get() needs.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas_test.go

    						},
    					},
    				},
    			},
    		},
    	}
    	return ts
    }
    
    func arraySchema(arrayType, format string, maxItems *int64) *schema.Structural {
    	return &schema.Structural{
    		Generic: schema.Generic{
    			Type: "array",
    		},
    		Items: &schema.Structural{
    			Generic: schema.Generic{
    				Type: arrayType,
    			},
    			ValueValidation: &schema.ValueValidation{
    				Format: format,
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 14K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/openapi/schemas_test.go

    						},
    					},
    				}},
    			}}}
    	return ts
    }
    
    func arraySchema(arrayType, format string, maxItems *int64) *spec.Schema {
    	return &spec.Schema{
    		SchemaProps: spec.SchemaProps{
    			Type: []string{"array"},
    			Items: &spec.SchemaOrArray{Schema: &spec.Schema{
    				SchemaProps: spec.SchemaProps{
    					Type:   []string{arrayType},
    					Format: format,
    				}}},
    			MaxItems: maxItems,
    		},
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 14 17:18:27 UTC 2022
    - 13K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    	}
    	if ruleType == "int-or-string" {
    		return "", "", true
    	}
    	return ruleType, "", false
    }
    
    func genArrayWithRule(arrayType, rule string) func(maxItems *int64) *schema.Structural {
    	passedType, passedFormat, xIntString := parseRuleType(arrayType)
    	return func(maxItems *int64) *schema.Structural {
    		return &schema.Structural{
    			Generic: schema.Generic{
    				Type: "array",
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  10. src/go/types/exprstring.go

    		WriteExpr(buf, x.X)
    
    	case *ast.BinaryExpr:
    		WriteExpr(buf, x.X)
    		buf.WriteByte(' ')
    		buf.WriteString(x.Op.String())
    		buf.WriteByte(' ')
    		WriteExpr(buf, x.Y)
    
    	case *ast.ArrayType:
    		buf.WriteByte('[')
    		if x.Len != nil {
    			WriteExpr(buf, x.Len)
    		}
    		buf.WriteByte(']')
    		WriteExpr(buf, x.Elt)
    
    	case *ast.StructType:
    		buf.WriteString("struct{")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 19:31:44 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top