@Test public void testSpecialCharsAreNotValid() throws Exception { assertFalse(mAlphaNumeric.isValid("ä")); assertFalse(mAlphaNumeric.isValid("ö")); assertFalse(mAlphaNumeric.isValid("ü")); assertFalse(mAlphaNumeric.isValid("ß")); }
@Override public boolean isValid(final String text) { return text.matches("[0-9a-zA-Z]*"); }
AlphaNumeric implements Validation { @Override public boolean isValid(final String text) { return text.matches("[0-9a-zA-Z]*"); } }
AlphaNumeric implements Validation { @Override public boolean isValid(final String text) { return text.matches("[0-9a-zA-Z]*"); } private  AlphaNumeric(); }
AlphaNumeric implements Validation { @Override public boolean isValid(final String text) { return text.matches("[0-9a-zA-Z]*"); } private  AlphaNumeric(); static AlphaNumeric build(); @Override String getErrorMessage(final Context context); @Override boolean isValid(final String text); }
AlphaNumeric implements Validation { @Override public boolean isValid(final String text) { return text.matches("[0-9a-zA-Z]*"); } private  AlphaNumeric(); static AlphaNumeric build(); @Override String getErrorMessage(final Context context); @Override boolean isValid(final String text);  }