public static final boolean isValid ( final String value ) { if ( value == null ) { return true ; } if ( ( value . length ( ) < 3 ) || ( value . length ( ) > 20 ) ) { return false ; } return PATTERN . matcher ( value . toString ( ) ) . matches ( ) ; }
Check that a given string is a well - formed user id .