public class StringPatternMatches extends Object
Constructor and Description |
---|
StringPatternMatches(CharSequence input,
Collection<Pattern> patterns,
boolean discard)
Constructs a new string pattern match iterator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns
true if the character sequence has more matches. |
Matcher |
next()
Returns the next match from the character sequence.
|
public StringPatternMatches(CharSequence input, Collection<Pattern> patterns, boolean discard)
discard
is true
,
then a pattern is discarded after it is first matched.input
- the character sequence to match regular expression patterns against.patterns
- a collection of regular expression patterns to match.discard
- indicates patterns be discarded after they yield a match.public Matcher next()
Matcher
from the character sequence.NoSuchElementException
- if the reader has no more matches.public boolean hasNext()
true
if the character sequence has more matches.true
if the character sequence has more matches.Copyright © 2025 Open Identity Platform Community. All rights reserved.