String.Transform(IFunction) Method
Definition
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.
This method allows the application of a function to this
string.
[Android.Runtime.Register("transform", "(Ljava/util/function/Function;)Ljava/lang/Object;", "", ApiSince=34)]
[Java.Interop.JavaTypeParameters(new System.String[] { "R" })]
public Java.Lang.Object? Transform (Java.Util.Functions.IFunction f);
[<Android.Runtime.Register("transform", "(Ljava/util/function/Function;)Ljava/lang/Object;", "", ApiSince=34)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "R" })>]
member this.Transform : Java.Util.Functions.IFunction -> Java.Lang.Object
Parameters
a function to apply
Returns
the result of applying the function to this string
- Attributes
Remarks
This method allows the application of a function to this
string. The function should expect a single String argument and produce an R
result.
Any exception thrown by f.apply()
will be propagated to the caller.
Added in 12.
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.