@Test public void testPad1() throws Throwable { String result = RightTPadder.SPACE_PADDER.pad("", 100); assertEquals(" ", result, "result"); }
public String pad(String data, int maxLength) throws ISOException { if (data.length() > maxLength) { return super.pad(data.substring(0,maxLength), maxLength); } else { return super.pad(data, maxLength); } }
RightTPadder extends RightPadder { public String pad(String data, int maxLength) throws ISOException { if (data.length() > maxLength) { return super.pad(data.substring(0,maxLength), maxLength); } else { return super.pad(data, maxLength); } } }
RightTPadder extends RightPadder { public String pad(String data, int maxLength) throws ISOException { if (data.length() > maxLength) { return super.pad(data.substring(0,maxLength), maxLength); } else { return super.pad(data, maxLength); } } RightTPadder(char pad); }
RightTPadder extends RightPadder { public String pad(String data, int maxLength) throws ISOException { if (data.length() > maxLength) { return super.pad(data.substring(0,maxLength), maxLength); } else { return super.pad(data, maxLength); } } RightTPadder(char pad); String pad(String data, int maxLength); }
RightTPadder extends RightPadder { public String pad(String data, int maxLength) throws ISOException { if (data.length() > maxLength) { return super.pad(data.substring(0,maxLength), maxLength); } else { return super.pad(data, maxLength); } } RightTPadder(char pad); String pad(String data, int maxLength); static final RightTPadder SPACE_PADDER; }