- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 987 for typeOf (0.14 sec)
-
subprojects/core-api/src/main/java/org/gradle/api/reflect/TypeOf.java
* @return the {@literal TypeOf} that captures the generic type of the given {@literal Type} */ public static <T> TypeOf<T> typeOf(Type type) { return new TypeOf<T>( Cast.<ModelType<T>>uncheckedCast( ModelType.of(typeWhichCannotBeNull(type)))) { }; } /** * Constructs a new parameterized type from a given parameterized type definition and an array of type arguments.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 09:45:59 UTC 2024 - 10.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go
nTypeSpec nTypeSwitchStmt nUnaryExpr nValueSpec ) // typeOf returns a distinct single-bit value that represents the type of n. // // Various implementations were benchmarked with BenchmarkNewInspector: // // GOGC=off // - type switch 4.9-5.5ms 2.1ms // - binary search over a sorted list of types 5.5-5.9ms 2.5ms // - linear scan, frequency-ordered list 5.9-6.1ms 2.7ms
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 4.8K bytes - Viewed (0) -
src/reflect/type_test.go
{"func(func(int, int))", reflect.TypeOf(func(func(int, int)) {}), false}, {"int64", reflect.TypeOf(int64(1)), false}, {"uint64", reflect.TypeOf(uint64(1)), false}, {"*[4]int", reflect.TypeOf(&[4]int{}), true}, {"chan int64", reflect.TypeOf(make(chan int64)), false}, {"map[int]int", reflect.TypeOf(make(map[int]int)), true}, {"string", reflect.TypeOf(""), true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 4.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ExtensionsStorageTest.groovy
[name: 'testExtension', type: new TypeOf<TestExtension>() {}] ] } def "only considers public type when addressing extensions by type"() { given: Integer number = 23 storage.add typeOf(Number), 'number', number expect: storage.findByType(typeOf(Integer)) == null storage.findByType(typeOf(Number)) == number
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4.4K bytes - Viewed (0) -
pkg/controlplane/import_known_versions_test.go
reflect.TypeOf(metav1.TypeMeta{}): true, reflect.TypeOf(metav1.ListMeta{}): true, reflect.TypeOf(metav1.ObjectMeta{}): true, reflect.TypeOf(metav1.OwnerReference{}): true, reflect.TypeOf(metav1.LabelSelector{}): true, reflect.TypeOf(metav1.GetOptions{}): true, reflect.TypeOf(metav1.ListOptions{}): true, reflect.TypeOf(metav1.DeleteOptions{}): true,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 22 18:47:31 UTC 2021 - 3.1K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/ProjectSchemaLambdaAccessorsIntegrationTest.kt
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Sep 24 17:45:43 UTC 2023 - 8.4K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/schemaBuidler/TreatInterfaceAsConfigureLambdaTest.kt
@Test fun recognizesLambdaType() { assertEquals(typeOf<Int>(), customConfigureLambdas.getTypeConfiguredByLambda(typeOf<MyFunctionalInterface<Int>>())) assertTrue { customConfigureLambdas.isConfigureLambdaForType(typeOf<Int>(), typeOf<MyFunctionalInterface<Int>>()) } assertFalse { customConfigureLambdas.isConfigureLambdaForType(typeOf<String>(), typeOf<MyFunctionalInterface<Int>>()) } } @Test
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 02 10:53:44 UTC 2024 - 2.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ExtensionContainerTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 8.5K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/reflect/TypeOfSpec.groovy
typeOf((Type) String) == new TypeOf<String>() {} parameterizedTypeOf(new TypeOf<List<?>>() {}, typeOf(String)) == new TypeOf<List<String>>() {} parameterizedTypeOf(new TypeOf<Map<?, ?>>() {}, typeOf(String), typeOf(Integer)) == new TypeOf<Map<String, Integer>>() {} } def "componentType is null on non-array types"() { expect: typeOf(String).componentType == null
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Oct 29 11:51:08 UTC 2021 - 3.4K bytes - Viewed (0) -
src/cmd/fix/typecheck.go
// Propagate types across binary ops that require two args of the same type. switch n.Op { case token.EQL, token.NEQ: // TODO: more cases. This is enough for the cftype fix. if typeof[n.X] != "" && typeof[n.Y] == "" { typeof[n.Y] = typeof[n.X] } if typeof[n.X] == "" && typeof[n.Y] != "" { typeof[n.X] = typeof[n.Y] } } } } walkBeforeAfter(f, before, after) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 22:02:42 UTC 2022 - 20.1K bytes - Viewed (0)