@Test public void shouldNotPadStringThatIsLongerThanRequiredMinimum() { String padded = leftPaddingFunction.apply(1234567); assertThat(padded, is("1234567")); }
@Override public String apply(Object toPad) { checkNotNull(toPad, "Can't pad null"); return paddingType.pad(toPad, minimumLength, padChar); }
PaddingFunction implements Function<Object, String> { @Override public String apply(Object toPad) { checkNotNull(toPad, "Can't pad null"); return paddingType.pad(toPad, minimumLength, padChar); } }
PaddingFunction implements Function<Object, String> { @Override public String apply(Object toPad) { checkNotNull(toPad, "Can't pad null"); return paddingType.pad(toPad, minimumLength, padChar); } private  PaddingFunction(@Nonnull PaddingType paddingType, int minimumLength, char padChar); }
PaddingFunction implements Function<Object, String> { @Override public String apply(Object toPad) { checkNotNull(toPad, "Can't pad null"); return paddingType.pad(toPad, minimumLength, padChar); } private  PaddingFunction(@Nonnull PaddingType paddingType, int minimumLength, char padChar); static PaddingFunction padStart(int minimumLength, char padChar); static PaddingFunction padEnd(int minimumLength, char padChar); @Override String apply(Object toPad); }
PaddingFunction implements Function<Object, String> { @Override public String apply(Object toPad) { checkNotNull(toPad, "Can't pad null"); return paddingType.pad(toPad, minimumLength, padChar); } private  PaddingFunction(@Nonnull PaddingType paddingType, int minimumLength, char padChar); static PaddingFunction padStart(int minimumLength, char padChar); static PaddingFunction padEnd(int minimumLength, char padChar); @Override String apply(Object toPad);  }