public final class FragmentMatcher
extends java.lang.Object
*
- matches zero or more any characters different than slash$
- matches the end of the subjectModifier and Type | Class and Description |
---|---|
static class |
FragmentMatcher.Result |
Modifier and Type | Method and Description |
---|---|
static FragmentMatcher.Result |
startsWith(java.lang.String pattern,
java.lang.String subject)
Check if the subject starts with the pattern.
|
public static FragmentMatcher.Result startsWith(java.lang.String pattern, java.lang.String subject)
pattern
- pattern to be matchedsubject
- subjectFragmentMatcher.Result.FULL_MATCH
if the subject starts with the pattern,
FragmentMatcher.Result.PARTIAL_MATCH
if the subject is shorter than the pattern,
but matches it so far and FragmentMatcher.Result.MISMATCH
if it doesn't start with
the pattern.Copyright © 2010 - 2020 Adobe. All Rights Reserved