net.sf.qualitycheck
Class Check.NumericRegularExpressionHolder
java.lang.Object
net.sf.qualitycheck.Check.NumericRegularExpressionHolder
- Enclosing class:
- Check
protected static final class Check.NumericRegularExpressionHolder
- extends Object
Holder for the regular expression to determine numeric values. Using the holder pattern guarantees that the
regular expression is initialized before the first use (thread safe!) and that it is only initialized if it is
needed. So, we do not pay any performance bounty for regular expressions when using other checks.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Check.NumericRegularExpressionHolder
protected Check.NumericRegularExpressionHolder()
getPattern
@Nonnull
public static Pattern getPattern()
Copyright © 2012-2013. All Rights Reserved.