public boolean isInstance(CharSequence value)
    {
        // Check the value is under the maximum if one is set.
        // Check the value matches the pattern if one is set.
        return ((maxLength <= 0) || (value.length() <= maxLength)) && compiledPattern.matcher(value).matches();
    }
public boolean isInstance(CharSequence value)
    {
        
        
        return ((maxLength <= 0) || (value.length() <= maxLength)) && compiledPattern.matcher(value).matches();
    }
public boolean isInstance ( CharSequence value ) { // Check the value is under the maximum if one is set. // Check the value matches the pattern if one is set. return ( ( maxLength <= 0 ) || ( value . length ( ) <= maxLength ) ) && compiledPattern . matcher ( value ) . matches ( ) ; }
Checks a string value against this type to see if it is a valid instance of the type.

@param  value The value to type check.

@return <tt>true</tt> if the string is a valid instance of this type.
Checks a string value against this type to see if it is a valid instance of the type .