return result;
}
- public void enforceLength(final int targetLength) {
+ public String2 enforceLength(final int targetLength) {
if (getLength() > targetLength)
chars.subList(targetLength, getLength()).clear();
else if (getLength() < targetLength) {
for (int i = 0; i < charactersToAdd; i++)
chars.add(' ');
}
+
+ return this;
}
public int getLength() {