APIdia Launch Partner
Top Description Constructors Methods
jdk.internal.util

public final Class DateTimeHelper

extends Object
Class Inheritance
Imports
java.time.LocalDate, .LocalDateTime, .LocalTime

Helper for java.time

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
formatTo(StringBuilder buf, LocalDateTime dateTime)

Prints the toString result to the given buf, avoiding extra string allocations.

public static void
formatTo(StringBuilder buf, LocalDate date)

Prints the toString result to the given buf, avoiding extra string allocations.

public static void
formatTo(StringBuilder buf, LocalTime time)

Prints the toString result to the given buf, avoiding extra string allocations.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DateTimeHelperback to summary
private DateTimeHelper()

Method Detail

formatToback to summary
public static void formatTo(StringBuilder buf, LocalDateTime dateTime)

Prints the toString result to the given buf, avoiding extra string allocations.

formatToback to summary
public static void formatTo(StringBuilder buf, LocalDate date)

Prints the toString result to the given buf, avoiding extra string allocations. Requires extra capacity of 10 to avoid StringBuilder reallocation.

formatToback to summary
public static void formatTo(StringBuilder buf, LocalTime time)

Prints the toString result to the given buf, avoiding extra string allocations. Requires extra capacity of 18 to avoid StringBuilder reallocation.