Freigeben über


Scanner.InvokeHasNext Method

Definition

Overloads

InvokeHasNext(Pattern)

Returns true if the next complete token matches the specified pattern.

InvokeHasNext(String)

Returns true if the next token matches the pattern constructed from the specified string.

InvokeHasNext(Pattern)

Returns true if the next complete token matches the specified pattern.

[Android.Runtime.Register("hasNext", "(Ljava/util/regex/Pattern;)Z", "")]
public bool InvokeHasNext (Java.Util.Regex.Pattern? pattern);
[<Android.Runtime.Register("hasNext", "(Ljava/util/regex/Pattern;)Z", "")>]
member this.InvokeHasNext : Java.Util.Regex.Pattern -> bool

Parameters

pattern
Pattern

the pattern to scan for

Returns

true if and only if this scanner has another token matching the specified pattern

Attributes

Exceptions

if the Scanner has been closed.

Remarks

Java documentation for java.util.Scanner.hasNext(java.util.regex.Pattern).

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

InvokeHasNext(String)

Returns true if the next token matches the pattern constructed from the specified string.

[Android.Runtime.Register("hasNext", "(Ljava/lang/String;)Z", "")]
public bool InvokeHasNext (string? pattern);
[<Android.Runtime.Register("hasNext", "(Ljava/lang/String;)Z", "")>]
member this.InvokeHasNext : string -> bool

Parameters

pattern
String

a string specifying the pattern to scan

Returns

true if and only if this scanner has another token matching the specified pattern

Attributes

Exceptions

if the Scanner has been closed.

Remarks

Java documentation for java.util.Scanner.hasNext(java.lang.String).

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