net.sf.qualitycheck
Class Check.NumericRegularExpressionHolder

java.lang.Object
  extended by 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.


Constructor Summary
protected Check.NumericRegularExpressionHolder()
           
 
Method Summary
static Pattern getPattern()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Check.NumericRegularExpressionHolder

protected Check.NumericRegularExpressionHolder()
Method Detail

getPattern

@Nonnull
public static Pattern getPattern()


Copyright © 2012-2013. All Rights Reserved.