@Test public void testAlignRight() throws Exception { Assert.assertEquals(" foo", StringUtils.align("foo", 9, StringUtils.ALIGN_RIGHT)); Assert.assertEquals("+++++++fu", StringUtils.align("fu", 9, '+', StringUtils.ALIGN_RIGHT)); }
@SuppressWarnings({"SameParameterValue", "SameParameterValue"}) public static String align(String s, int width, int alignment) { return align(s, width, ' ', alignment); }
StringUtils { @SuppressWarnings({"SameParameterValue", "SameParameterValue"}) public static String align(String s, int width, int alignment) { return align(s, width, ' ', alignment); } }
StringUtils { @SuppressWarnings({"SameParameterValue", "SameParameterValue"}) public static String align(String s, int width, int alignment) { return align(s, width, ' ', alignment); }  }
StringUtils { @SuppressWarnings({"SameParameterValue", "SameParameterValue"}) public static String align(String s, int width, int alignment) { return align(s, width, ' ', alignment); }  @SuppressWarnings({"SameParameterValue", "SameParameterValue"}) static String align(String s, int width, int alignment); static String align(String s, int width, char paddingChar, int alignment); static void align(PrintWriter output, String s, int width, int alignment); static void align(PrintWriter output, String s, int width, char paddingChar, int alignment); static String multiply(char c, int count); static String multiply(String s, int count); static void multiply(PrintWriter output, char c, int count); @SuppressWarnings({"SameParameterValue"}) static void multiply(PrintWriter output, String s, int count); @SuppressWarnings({"SameParameterValue"}) static String prependEachLine(String s, String prependWith); static void prependEachLine(PrintWriter output, String s, String prependWith); }
StringUtils { @SuppressWarnings({"SameParameterValue", "SameParameterValue"}) public static String align(String s, int width, int alignment) { return align(s, width, ' ', alignment); }  @SuppressWarnings({"SameParameterValue", "SameParameterValue"}) static String align(String s, int width, int alignment); static String align(String s, int width, char paddingChar, int alignment); static void align(PrintWriter output, String s, int width, int alignment); static void align(PrintWriter output, String s, int width, char paddingChar, int alignment); static String multiply(char c, int count); static String multiply(String s, int count); static void multiply(PrintWriter output, char c, int count); @SuppressWarnings({"SameParameterValue"}) static void multiply(PrintWriter output, String s, int count); @SuppressWarnings({"SameParameterValue"}) static String prependEachLine(String s, String prependWith); static void prependEachLine(PrintWriter output, String s, String prependWith); static final int ALIGN_LEFT; static final int ALIGN_CENTER; static final int ALIGN_RIGHT; }