@Test public void testIsEmailValidWithWrongEmail5() { assertThat(StringUtils.isEmailValid("this_is_wrong@aaaa.co@"), is(false)); }
public static boolean isEmailValid(@NonNull final String email) { Preconditions.checkNotNull(email, "email"); boolean isValid = false; if (pattern == null) { pattern = Pattern.compile(EMAIL_PATTERN); } isValid = pattern.matcher(email).matches(); return isValid; }
StringUtils { public static boolean isEmailValid(@NonNull final String email) { Preconditions.checkNotNull(email, "email"); boolean isValid = false; if (pattern == null) { pattern = Pattern.compile(EMAIL_PATTERN); } isValid = pattern.matcher(email).matches(); return isValid; } }
StringUtils { public static boolean isEmailValid(@NonNull final String email) { Preconditions.checkNotNull(email, "email"); boolean isValid = false; if (pattern == null) { pattern = Pattern.compile(EMAIL_PATTERN); } isValid = pattern.matcher(email).matches(); return isValid; } private  StringUtils(); }
StringUtils { public static boolean isEmailValid(@NonNull final String email) { Preconditions.checkNotNull(email, "email"); boolean isValid = false; if (pattern == null) { pattern = Pattern.compile(EMAIL_PATTERN); } isValid = pattern.matcher(email).matches(); return isValid; } private  StringUtils(); static boolean isEmailValid(@NonNull final String email); static boolean isBlank(@Nullable final CharSequence text); static boolean isBlank(@Nullable final String text); @NonNull static String getFirstCapitalize(@NonNull String text); @NonNull static String getAllCapitalize(@NonNull String text); }
StringUtils { public static boolean isEmailValid(@NonNull final String email) { Preconditions.checkNotNull(email, "email"); boolean isValid = false; if (pattern == null) { pattern = Pattern.compile(EMAIL_PATTERN); } isValid = pattern.matcher(email).matches(); return isValid; } private  StringUtils(); static boolean isEmailValid(@NonNull final String email); static boolean isBlank(@Nullable final CharSequence text); static boolean isBlank(@Nullable final String text); @NonNull static String getFirstCapitalize(@NonNull String text); @NonNull static String getAllCapitalize(@NonNull String text);  }