Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 84 for ArrayType (0.33 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/compile/internal/syntax/parser.go

    				d.Type = p.typeOrNil()
    			} else {
    				// d.Name "[" pname "]" ...
    				// d.Name "[" x ...
    				d.Type = p.arrayType(pos, x)
    			}
    		case _Rbrack:
    			// d.Name "[" "]" ...
    			p.next()
    			d.Type = p.sliceType(pos)
    		default:
    			// d.Name "[" ...
    			d.Type = p.arrayType(pos, nil)
    		}
    	} else {
    		d.Alias = p.gotAssign()
    		d.Type = p.typeOrNil()
    	}
    
    	if d.Type == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go

    	// Fast path: nearly half of all nodes are identifiers.
    	if _, ok := n.(*ast.Ident); ok {
    		return 1 << nIdent
    	}
    
    	// These cases include all nodes encountered by ast.Inspect.
    	switch n.(type) {
    	case *ast.ArrayType:
    		return 1 << nArrayType
    	case *ast.AssignStmt:
    		return 1 << nAssignStmt
    	case *ast.BadDecl:
    		return 1 << nBadDecl
    	case *ast.BadExpr:
    		return 1 << nBadExpr
    	case *ast.BadStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. src/go/ast/ast.go

    const (
    	SEND ChanDir = 1 << iota
    	RECV
    )
    
    // A type is represented by a tree consisting of one
    // or more of the following type-specific expression
    // nodes.
    type (
    	// An ArrayType node represents an array or slice type.
    	ArrayType struct {
    		Lbrack token.Pos // position of "["
    		Len    Expr      // Ellipsis node for [...]T array types, nil for slice types
    		Elt    Expr      // element type
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

      }
    
      public void testResolveToGenericArrayType() {
        GenericArrayType arrayType =
            (GenericArrayType) new Holder<List<int[][]>[]>() {}.getContentType();
        ParameterizedType listType = (ParameterizedType) arrayType.getGenericComponentType();
        assertEquals(List.class, listType.getRawType());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

      }
    
      public void testResolveToGenericArrayType() {
        GenericArrayType arrayType =
            (GenericArrayType) new Holder<List<int[][]>[]>() {}.getContentType();
        ParameterizedType listType = (ParameterizedType) arrayType.getGenericComponentType();
        assertEquals(List.class, listType.getRawType());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 19.5K bytes
    - Viewed (0)
Back to top