@Override public void printTo(Writer out, ReadablePartial partial, Locale locale) throws IOException { int value = getValue(partial); if (value < 0) { if (fillChar != null) { out.write(fillChar); out.write(fillChar); } } else { super.printTo(out, partial, locale); } }
@Override public void printTo(StringBuffer buf, ReadablePartial partial, Locale locale) { int value = getValue(partial); if (value < 0) { if (fillChar != null) { buf.append(fillChar); buf.append(fillChar); } } else { super.printTo(buf, partial, locale); } }
@Override public void printTo( StringBuffer buf, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, Locale locale) { int value = getValue(instant, chrono); if (value < 0) { if (fillChar != null) { buf.append(fillChar); buf.append(fillChar); } } else { super.printTo(buf, instant, chrono, displayOffset, displayZone, locale); } }
@Override public void printTo( Writer out, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, Locale locale) throws IOException { int value = getValue(instant, chrono); if (value < 0) { if (fillChar != null) { out.write(fillChar); out.write(fillChar); } } else { super.printTo(out, instant, chrono, displayOffset, displayZone, locale); } }