Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Computes the given class's derived value for this ClassValue
.
[Android.Runtime.Register("computeValue", "(Ljava/lang/Class;)Ljava/lang/Object;", "GetComputeValue_Ljava_lang_Class_Handler", ApiSince=34)]
protected abstract Java.Lang.Object? ComputeValue(Java.Lang.Class? type);
[<Android.Runtime.Register("computeValue", "(Ljava/lang/Class;)Ljava/lang/Object;", "GetComputeValue_Ljava_lang_Class_Handler", ApiSince=34)>]
abstract member ComputeValue : Java.Lang.Class -> Java.Lang.Object
the type whose class value must be computed
the newly computed value associated with this ClassValue
, for the given class or interface
Computes the given class's derived value for this ClassValue
.
This method will be invoked within the first thread that accesses the value with the #get get
method.
Normally, this method is invoked at most once per class, but it may be invoked again if there has been a call to #remove remove
.
If this method throws an exception, the corresponding call to get
will terminate abnormally with that exception, and no class value will be recorded.
Java documentation for java.lang.ClassValue.computeValue(java.lang.Class<?>)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in