Pattern.AsPredicate Method

Definition

Creates a predicate that tests if this pattern is found in a given input string.

[Android.Runtime.Register("asPredicate", "()Ljava/util/function/Predicate;", "", ApiSince=24)]
public Java.Util.Functions.IPredicate AsPredicate ();
[<Android.Runtime.Register("asPredicate", "()Ljava/util/function/Predicate;", "", ApiSince=24)>]
member this.AsPredicate : unit -> Java.Util.Functions.IPredicate

Returns

The predicate which can be used for finding a match on a subsequence of a string

Attributes

Remarks

Creates a predicate that tests if this pattern is found in a given input string.

Added in 1.8.

Java documentation for java.util.regex.Pattern.asPredicate().

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.

Applies to