public String formatISO(
        IsoDateStyle dateStyle,
        IsoDecimalStyle decimalStyle,
        ClockUnit precision,
        InfinityStyle infinityStyle
    ) {

        TimestampInterval interval = this.toCanonical();
        StringBuilder buffer = new StringBuilder(60);
        ChronoPrinter<PlainTimestamp> printer = Iso8601Format.ofTimestamp(dateStyle, decimalStyle, precision);
        if (interval.getStart().isInfinite()) {
            buffer.append(infinityStyle.displayPast(printer, PlainTimestamp.axis()));
        } else {
            printer.print(interval.getStartAsTimestamp(), buffer);
        }
        buffer.append('/');
        if (interval.getEnd().isInfinite()) {
            buffer.append(infinityStyle.displayFuture(printer, PlainTimestamp.axis()));
        } else {
            printer.print(interval.getEndAsTimestamp(), buffer);
        }
        return buffer.toString();

    }
public String formatISO ( IsoDateStyle dateStyle , IsoDecimalStyle decimalStyle , ClockUnit precision , InfinityStyle infinityStyle ) { TimestampInterval interval = this . toCanonical ( ) ; StringBuilder buffer = new StringBuilder ( 60 ) ; ChronoPrinter < PlainTimestamp > printer = Iso8601Format . ofTimestamp ( dateStyle , decimalStyle , precision ) ; if ( interval . getStart ( ) . isInfinite ( ) ) { buffer . append ( infinityStyle . displayPast ( printer , PlainTimestamp . axis ( ) ) ) ; } else { printer . print ( interval . getStartAsTimestamp ( ) , buffer ) ; } buffer . append ( '/' ) ; if ( interval . getEnd ( ) . isInfinite ( ) ) { buffer . append ( infinityStyle . displayFuture ( printer , PlainTimestamp . axis ( ) ) ) ; } else { printer . print ( interval . getEndAsTimestamp ( ) , buffer ) ; } return buffer . toString ( ) ; }
/*[deutsch]
<p>Formatiert die kanonische Form dieses Intervalls im angegebenen ISO-8601-Stil. </p>

@param   dateStyle       iso-compatible date style
@param   decimalStyle    iso-compatible decimal style
@param   precision       controls the precision of output format with constant length
@param   infinityStyle   controlling the format of infinite boundaries
@return  String
@throws  IllegalStateException   if there is no canonical form
or given infinity style prevents infinite intervals
@see     #toCanonical()
@since   4.18