public final class FragmentMatcher extends Object
*- matches zero or more any characters different than slash
$- matches the end of the subject
|Modifier and Type||Class and Description|
|Modifier and Type||Method and Description|
Check if the subject starts with the pattern.
public static FragmentMatcher.Result startsWith(String pattern, String subject)
pattern- pattern to be matched
FragmentMatcher.Result.FULL_MATCHif the subject starts with the pattern,
FragmentMatcher.Result.PARTIAL_MATCHif the subject is shorter than the pattern, but matches it so far and
FragmentMatcher.Result.MISMATCHif it doesn't start with the pattern.
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.