@ThreadSafe @DevelopersNote(value="The mutable m_aHashCode does not contradict thread safety") public final class RegExPattern extends Object implements Serializable
| Constructor and Description |
|---|
RegExPattern(String sRegEx) |
RegExPattern(String sRegEx,
int nOptions) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areDebugConsistencyChecksEnabled() |
static void |
checkPatternConsistency(String sRegEx) |
static void |
enableDebugConsistencyChecks(boolean bEnable) |
boolean |
equals(Object o) |
Pattern |
getAsPattern() |
int |
getOptions() |
String |
getRegEx() |
int |
hashCode() |
String |
toString() |
public RegExPattern(@Nonnull @Nonempty @RegEx String sRegEx) throws IllegalArgumentException
IllegalArgumentExceptionpublic RegExPattern(@Nonnull @Nonempty @RegEx String sRegEx, @Nonnegative int nOptions) throws IllegalArgumentException
IllegalArgumentExceptionpublic static boolean areDebugConsistencyChecksEnabled()
public static void enableDebugConsistencyChecks(boolean bEnable)
public static void checkPatternConsistency(@Nonnull @RegEx String sRegEx) throws IllegalArgumentException
IllegalArgumentException@Nonnull @Nonempty @RegEx public String getRegEx()
null nor
empty.@Nonnegative public int getOptions()
Copyright © 2014–2015 Philip Helger. All rights reserved.