/** * <p>Short-cut for {@code print(Duration.from(threeten))}. </p> * * @param threeten object representing a duration which might contain several units and quantities * @return formatted list output in normalized form * @throws IllegalArgumentException in case of conversion failures * @since 4.4 * @see #print(Duration) */ /*[deutsch] * <p>Abkürzung für {@code print(Duration.from(threeten))}. </p> * * @param threeten object representing a duration which might contain several units and quantities * @return formatted list output in normalized form * @throws IllegalArgumentException in case of conversion failures * @since 4.4 * @see #print(Duration) */ public String print(TemporalAmount threeten) { return this.print(Duration.from(threeten)); }
/** * <p>Creates a textual output of given temporal amount. </p> * * @param threeten temporal amount * @return textual representation of duration * @throws IllegalArgumentException if some aspects of temporal amount * prevents printing (for example mixed signs) * @see Duration#from(TemporalAmount) * @since 4.0 */ /*[deutsch] * <p>Erzeugt eine textuelle Ausgabe des angegebenen Zeitbetrags. </p> * * @param threeten temporal amount * @return textual representation of duration * @throws IllegalArgumentException if some aspects of temporal amount * prevents printing (for example mixed signs) * @see Duration#from(TemporalAmount) * @since 4.0 */ public String format(TemporalAmount threeten) { return this.format(Duration.from(threeten)); }
/** * <p>Short-cut for {@code print(Duration.from(threeten), width)}. </p> * * @param threeten object representing a duration which might contain several units and quantities * @param width text width (ABBREVIATED as synonym for SHORT) * @return formatted list output in normalized form * @throws IllegalArgumentException in case of conversion failures * @since 4.0 * @see #print(Duration, TextWidth) */ /*[deutsch] * <p>Abkürzung für {@code print(Duration.from(threeten), width)}. </p> * * @param threeten object representing a duration which might contain several units and quantities * @param width text width (ABBREVIATED as synonym for SHORT) * @return formatted list output in normalized form * @throws IllegalArgumentException in case of conversion failures * @since 4.0 * @see #print(Duration, TextWidth) */ public String print( TemporalAmount threeten, TextWidth width ) { return this.print(Duration.from(threeten), width); }
) { return this.print(Duration.from(threeten), width, printZero, maxLength);
/** * <p>Creates a textual output of given temporal amount and writes to * the buffer. </p> * * @param threeten temporal amount * @param buffer I/O-buffer where the result is written to * @throws IllegalArgumentException if some aspects of temporal amount * prevents printing (for example mixed signs) * @throws IOException if writing into buffer fails * @see Duration#from(TemporalAmount) * @since 4.0 */ /*[deutsch] * <p>Erzeugt eine textuelle Ausgabe des angegebenen Zeitbetrags und * schreibt sie in den Puffer. </p> * * @param threeten temporal amount * @param buffer I/O-buffer where the result is written to * @throws IllegalArgumentException if some aspects of temporal amount * prevents printing (for example mixed signs) * @throws IOException if writing into buffer fails * @see Duration#from(TemporalAmount) * @since 4.0 */ public void print( TemporalAmount threeten, Appendable buffer ) throws IOException { this.print(Duration.from(threeten), buffer); }