@Test public void testGetAllCapitalize() { assertThat(StringUtils.getAllCapitalize("lol"), is("LOL")); }
@NonNull public static String getAllCapitalize(@NonNull String text) { Preconditions.checkNotNull(text, "text"); StringBuilder textCapitalize = new StringBuilder(); if (!text.isEmpty()) { for (int i = 0; i < text.length(); i++) { textCapitalize.append(String.valueOf(text.charAt(i)).toUpperCase()); } } return textCapitalize.toString(); }
StringUtils { @NonNull public static String getAllCapitalize(@NonNull String text) { Preconditions.checkNotNull(text, "text"); StringBuilder textCapitalize = new StringBuilder(); if (!text.isEmpty()) { for (int i = 0; i < text.length(); i++) { textCapitalize.append(String.valueOf(text.charAt(i)).toUpperCase()); } } return textCapitalize.toString(); } }
StringUtils { @NonNull public static String getAllCapitalize(@NonNull String text) { Preconditions.checkNotNull(text, "text"); StringBuilder textCapitalize = new StringBuilder(); if (!text.isEmpty()) { for (int i = 0; i < text.length(); i++) { textCapitalize.append(String.valueOf(text.charAt(i)).toUpperCase()); } } return textCapitalize.toString(); } private  StringUtils(); }
StringUtils { @NonNull public static String getAllCapitalize(@NonNull String text) { Preconditions.checkNotNull(text, "text"); StringBuilder textCapitalize = new StringBuilder(); if (!text.isEmpty()) { for (int i = 0; i < text.length(); i++) { textCapitalize.append(String.valueOf(text.charAt(i)).toUpperCase()); } } return textCapitalize.toString(); } 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 { @NonNull public static String getAllCapitalize(@NonNull String text) { Preconditions.checkNotNull(text, "text"); StringBuilder textCapitalize = new StringBuilder(); if (!text.isEmpty()) { for (int i = 0; i < text.length(); i++) { textCapitalize.append(String.valueOf(text.charAt(i)).toUpperCase()); } } return textCapitalize.toString(); } 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);  }