@Test public void testFilledStr() throws Exception { Assert.assertThat(Texts.filledStr(3, 'a'), equalTo("aaa")); Assert.assertThat(Texts.filledStr(0, 'a'), equalTo("")); Assert.assertThat(Texts.filledStr(1, ','), equalTo(",")); }
public static String filledStr(int length, char filledChar) { char[] array = new char[length]; Arrays.fill(array, filledChar); return new String(array); }
Texts { public static String filledStr(int length, char filledChar) { char[] array = new char[length]; Arrays.fill(array, filledChar); return new String(array); } }
Texts { public static String filledStr(int length, char filledChar) { char[] array = new char[length]; Arrays.fill(array, filledChar); return new String(array); } private  Texts(); }
Texts { public static String filledStr(int length, char filledChar) { char[] array = new char[length]; Arrays.fill(array, filledChar); return new String(array); } private  Texts(); static String str(CharSequence s); static String str(Object o, String ifNull); static String strNotEmpty(CharSequence s, String ifEmpty); static Func.Transformer<T, String> strTransformer(final String ifNull); static Func.Transformer<T, CharSequence> textTransformer(final String ifNull); static String trim(CharSequence s); static boolean isTrimmedEmpty(CharSequence s); static int trimmedLength(CharSequence s); static int length(CharSequence s); static String trip(CharSequence s, String chars); static String filledStr(int length, char filledChar); static String initials(String[] words); static String join(CharSequence sep, T[] tokens,
                                  boolean skipNull, Func.Transformer<T, String> transformer); static String join(CharSequence sep, Iterable<T> tokens,
                                  boolean skipNull, Func.Transformer<T, String> transformer); static String base64(String s); static String md5(boolean upperCase, String s); static byte[] md5(byte[]... bytes); static byte[] digest(String algorithm, byte[]... bytes); static String bytesToHexString(byte[] bytes, boolean upperCase); static CharSequence withColor(CharSequence text, int color); }
Texts { public static String filledStr(int length, char filledChar) { char[] array = new char[length]; Arrays.fill(array, filledChar); return new String(array); } private  Texts(); static String str(CharSequence s); static String str(Object o, String ifNull); static String strNotEmpty(CharSequence s, String ifEmpty); static Func.Transformer<T, String> strTransformer(final String ifNull); static Func.Transformer<T, CharSequence> textTransformer(final String ifNull); static String trim(CharSequence s); static boolean isTrimmedEmpty(CharSequence s); static int trimmedLength(CharSequence s); static int length(CharSequence s); static String trip(CharSequence s, String chars); static String filledStr(int length, char filledChar); static String initials(String[] words); static String join(CharSequence sep, T[] tokens,
                                  boolean skipNull, Func.Transformer<T, String> transformer); static String join(CharSequence sep, Iterable<T> tokens,
                                  boolean skipNull, Func.Transformer<T, String> transformer); static String base64(String s); static String md5(boolean upperCase, String s); static byte[] md5(byte[]... bytes); static byte[] digest(String algorithm, byte[]... bytes); static String bytesToHexString(byte[] bytes, boolean upperCase); static CharSequence withColor(CharSequence text, int color); static final Charset UTF_8; }