- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 46 for ucast (0.04 sec)
-
platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/Cast.java
* * @param outputType The type to cast the input to * @param object The object to be cast (must not be {@code null}) * @param <O> The type to be cast to * @param <I> The type of the object to be vast * @return The input object, cast to the output type */ public static <O, I> O cast(Class<O> outputType, I object) { try {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 10 14:28:48 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/quantize/quantize_weight_only.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 17:10:32 UTC 2024 - 4.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor.go
// case. // // UnstructuredJSONScheme's behavior is replicated here. var items []interface{} if uncast, present := content["items"]; present { var cast bool items, cast = uncast.([]interface{}) if !cast { strict, lax = nil, fmt.Errorf("items field of UnstructuredList must be encoded as an array or null if present") return } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 13 14:57:12 UTC 2024 - 9.6K bytes - Viewed (0) -
platforms/core-runtime/stdlib-java-extensions/src/test/groovy/org/gradle/internal/CastTest.groovy
package org.gradle.internal import spock.lang.Specification import static Cast.cast class CastTest extends Specification { def "casting"() { given: def arg = "1" when: cast(Integer, arg) then: def e = thrown(ClassCastException) e.message == "Failed to cast object $arg of type ${arg.class.name} to target type ${Integer.name}" when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 10 14:28:48 UTC 2024 - 1.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/TypeCompatibilityModelProjectionSupport.java
if (canBeViewedAs(type)) { return Cast.uncheckedCast(toView(modelNode, ruleDescriptor, true)); } else { return null; } } @Override public <T> ModelView<? extends T> asImmutable(ModelType<T> type, MutableModelNode modelNode, ModelRuleDescriptor ruleDescriptor) { if (canBeViewedAs(type)) { return Cast.uncheckedCast(toView(modelNode, ruleDescriptor, false));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 12:51:08 UTC 2024 - 3.1K bytes - Viewed (0) -
platforms/core-configuration/stdlib-kotlin-extensions/src/main/kotlin/org/gradle/internal/extensions/stdlib/CastExtensions.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.internal.extensions.stdlib import org.gradle.internal.Cast fun <T> Any.uncheckedCast(): T =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:59:39 UTC 2024 - 767 bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtExpressionTypeProvider.kt
* } * ``` * Note that only nullability from "stable" smart cast types is considered. The * [spec](https://kotlinlang.org/spec/type-inference.html#smart-cast-sink-stability) provides an explanation on smart cast stability. */ public fun KtExpression.isDefinitelyNull(): Boolean =
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:35 UTC 2024 - 5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultProperty.java
return type; } @Override public void setFromAnyValue(Object object) { if (object instanceof Provider) { set(Cast.<Provider<T>>uncheckedNonnullCast(object)); } else { set(Cast.<T>uncheckedNonnullCast(object)); } } @Override public void set(@Nullable T value) { if (value == null) { discardValue();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 05:33:15 UTC 2024 - 6.1K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtSmartCastProvider.kt
* smart-casts: * * ```kt * if (this is String) { * this.substring() // 'this' receiver is explicit, so no implicit smart-cast here. * * smartcast() // 'this' receiver is implicit, therefore there is implicit smart-cast involved. * } * ``` */ public fun KtExpression.getImplicitReceiverSmartCast(): Collection<KaImplicitReceiverSmartCast> =
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:35 UTC 2024 - 3.6K bytes - Viewed (0) -
platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/services/NativeServicesInitializationTest.groovy
*/ package org.gradle.internal.nativeintegration.services import net.rubygrapefruit.platform.Native import org.gradle.api.internal.file.temp.TemporaryFileProvider import org.gradle.internal.Cast import org.gradle.internal.concurrent.Stoppable import org.gradle.internal.file.Chmod import org.gradle.internal.reflect.JavaMethod import org.gradle.internal.service.ServiceRegistration
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 08:51:56 UTC 2024 - 2.6K bytes - Viewed (0)