@Test public void setLengthShouldAppendCharacterForNullStrings() { assertEquals(" ", StringUtil.setLength(null, 10, ' ')); }
public static String setLength( String original, int length, char padChar ) { return justifyLeft(original, length, padChar, false); }
StringUtil { public static String setLength( String original, int length, char padChar ) { return justifyLeft(original, length, padChar, false); } }
StringUtil { public static String setLength( String original, int length, char padChar ) { return justifyLeft(original, length, padChar, false); } private  StringUtil(); }
StringUtil { public static String setLength( String original, int length, char padChar ) { return justifyLeft(original, length, padChar, false); } private  StringUtil(); static String combineLines( String[] lines ); static String combineLines( String[] lines,
                                       char separator ); static List<String> splitLines( final String content ); static String join( Object[] values,
                               String delimiter ); static String join( Iterable<?> values,
                               String delimiter ); static String createString( String pattern,
                                       Object... parameters ); static String createString( final char charToRepeat,
                                       int numberOfRepeats ); static String setLength( String original,
                                    int length,
                                    char padChar ); static String justify( Justify justify,
                                  String str,
                                  final int width,
                                  char padWithChar ); static String justifyRight( String str,
                                       final int width,
                                       char padWithChar ); static String justifyLeft( String str,
                                      final int width,
                                      char padWithChar ); static String justifyCenter( String str,
                                        final int width,
                                        char padWithChar ); static String truncate( Object obj,
                                   int maxLength ); static String truncate( Object obj,
                                   int maxLength,
                                   String suffix ); static String read( Reader reader ); static String read( InputStream stream ); static void write( String content,
                              OutputStream stream ); static void write( String content,
                              Writer writer ); static String getStackTrace( Throwable throwable ); static String normalize( String text ); static String getHexString( byte[] bytes ); static byte[] fromHexString( String hexadecimal ); static boolean isHexString( String hexadecimal ); static boolean isHexCharacter( char c ); static boolean isBlank( String str ); static boolean notBlank( String str ); static boolean containsAnyOf( String str,
                                         char... chars ); }
StringUtil { public static String setLength( String original, int length, char padChar ) { return justifyLeft(original, length, padChar, false); } private  StringUtil(); static String combineLines( String[] lines ); static String combineLines( String[] lines,
                                       char separator ); static List<String> splitLines( final String content ); static String join( Object[] values,
                               String delimiter ); static String join( Iterable<?> values,
                               String delimiter ); static String createString( String pattern,
                                       Object... parameters ); static String createString( final char charToRepeat,
                                       int numberOfRepeats ); static String setLength( String original,
                                    int length,
                                    char padChar ); static String justify( Justify justify,
                                  String str,
                                  final int width,
                                  char padWithChar ); static String justifyRight( String str,
                                       final int width,
                                       char padWithChar ); static String justifyLeft( String str,
                                      final int width,
                                      char padWithChar ); static String justifyCenter( String str,
                                        final int width,
                                        char padWithChar ); static String truncate( Object obj,
                                   int maxLength ); static String truncate( Object obj,
                                   int maxLength,
                                   String suffix ); static String read( Reader reader ); static String read( InputStream stream ); static void write( String content,
                              OutputStream stream ); static void write( String content,
                              Writer writer ); static String getStackTrace( Throwable throwable ); static String normalize( String text ); static String getHexString( byte[] bytes ); static byte[] fromHexString( String hexadecimal ); static boolean isHexString( String hexadecimal ); static boolean isHexCharacter( char c ); static boolean isBlank( String str ); static boolean notBlank( String str ); static boolean containsAnyOf( String str,
                                         char... chars ); static final String[] EMPTY_STRING_ARRAY; }