DateTimeFormatterSkeletonOptions.Builder


public final class DateTimeFormatterSkeletonOptions.Builder


The Builder class used to construct a DateTimeFormatterSkeletonOptions in a way that is safe and discoverable.

Summary

Public methods

final @NonNull DateTimeFormatterSkeletonOptions

Builds the immutable DateTimeFormatterSkeletonOptions to use with DateTimeFormatter.

final @NonNull DateTimeFormatterSkeletonOptions.Builder

Set the day presence and length to use for formatting.

final @NonNull DateTimeFormatterSkeletonOptions.Builder

Set the era presence and length to use for formatting.

final @NonNull DateTimeFormatterSkeletonOptions.Builder

Set the fractional second presence and length to use for formatting.

final @NonNull DateTimeFormatterSkeletonOptions.Builder

Set the hour presence and length to use for formatting.

final @NonNull DateTimeFormatterSkeletonOptions.Builder

Set the minute presence and length to use for formatting.

final @NonNull DateTimeFormatterSkeletonOptions.Builder

Set the month presence and length to use for formatting.

final @NonNull DateTimeFormatterSkeletonOptions.Builder

Set the day period presence and length to use for formatting.

final @NonNull DateTimeFormatterSkeletonOptions.Builder

Set the second presence and length to use for formatting.

final @NonNull DateTimeFormatterSkeletonOptions.Builder

Set the timezone presence and length to use for formatting.

final @NonNull DateTimeFormatterSkeletonOptions.Builder

Set the day of week presence and length to use for formatting.

final @NonNull DateTimeFormatterSkeletonOptions.Builder

Set the year presence and length to use for formatting.

Public methods

build

Added in 1.0.0-alpha01
public final @NonNull DateTimeFormatterSkeletonOptions build()

Builds the immutable DateTimeFormatterSkeletonOptions to use with DateTimeFormatter.

return the DateTimeFormatterSkeletonOptions options.

setDay

Added in 1.0.0-alpha01
public final @NonNull DateTimeFormatterSkeletonOptions.Builder setDay(@NonNull DateTimeFormatterSkeletonOptions.Day day)

Set the day presence and length to use for formatting.

Parameters
@NonNull DateTimeFormatterSkeletonOptions.Day day

the era style to use.

setEra

Added in 1.0.0-alpha01
public final @NonNull DateTimeFormatterSkeletonOptions.Builder setEra(@NonNull DateTimeFormatterSkeletonOptions.Era era)

Set the era presence and length to use for formatting.

Parameters
@NonNull DateTimeFormatterSkeletonOptions.Era era

the era style to use.

setFractionalSecond

Added in 1.0.0-alpha01
public final @NonNull DateTimeFormatterSkeletonOptions.Builder setFractionalSecond(
    @NonNull DateTimeFormatterSkeletonOptions.FractionalSecond fractionalSecond
)

Set the fractional second presence and length to use for formatting.

Parameters
@NonNull DateTimeFormatterSkeletonOptions.FractionalSecond fractionalSecond

the era style to use.

setHour

Added in 1.0.0-alpha01
public final @NonNull DateTimeFormatterSkeletonOptions.Builder setHour(@NonNull DateTimeFormatterSkeletonOptions.Hour hour)

Set the hour presence and length to use for formatting.

Parameters
@NonNull DateTimeFormatterSkeletonOptions.Hour hour

the era style to use.

setMinute

Added in 1.0.0-alpha01
public final @NonNull DateTimeFormatterSkeletonOptions.Builder setMinute(@NonNull DateTimeFormatterSkeletonOptions.Minute minute)

Set the minute presence and length to use for formatting.

Parameters
@NonNull DateTimeFormatterSkeletonOptions.Minute minute

the era style to use.

setMonth

Added in 1.0.0-alpha01
public final @NonNull DateTimeFormatterSkeletonOptions.Builder setMonth(@NonNull DateTimeFormatterSkeletonOptions.Month month)

Set the month presence and length to use for formatting.

Parameters
@NonNull DateTimeFormatterSkeletonOptions.Month month

the era style to use.

setPeriod

Added in 1.0.0-alpha01
public final @NonNull DateTimeFormatterSkeletonOptions.Builder setPeriod(@NonNull DateTimeFormatterSkeletonOptions.Period period)

Set the day period presence and length to use for formatting.

Parameters
@NonNull DateTimeFormatterSkeletonOptions.Period period

the era style to use.

setSecond

Added in 1.0.0-alpha01
public final @NonNull DateTimeFormatterSkeletonOptions.Builder setSecond(@NonNull DateTimeFormatterSkeletonOptions.Second second)

Set the second presence and length to use for formatting.

Parameters
@NonNull DateTimeFormatterSkeletonOptions.Second second

the era style to use.

setTimezone

Added in 1.0.0-alpha01
public final @NonNull DateTimeFormatterSkeletonOptions.Builder setTimezone(@NonNull DateTimeFormatterSkeletonOptions.Timezone timezone)

Set the timezone presence and length to use for formatting.

Parameters
@NonNull DateTimeFormatterSkeletonOptions.Timezone timezone

the era style to use.

setWeekDay

Added in 1.0.0-alpha01
public final @NonNull DateTimeFormatterSkeletonOptions.Builder setWeekDay(@NonNull DateTimeFormatterSkeletonOptions.WeekDay weekDay)

Set the day of week presence and length to use for formatting.

Parameters
@NonNull DateTimeFormatterSkeletonOptions.WeekDay weekDay

the era style to use.

setYear

Added in 1.0.0-alpha01
public final @NonNull DateTimeFormatterSkeletonOptions.Builder setYear(@NonNull DateTimeFormatterSkeletonOptions.Year year)

Set the year presence and length to use for formatting.

Parameters
@NonNull DateTimeFormatterSkeletonOptions.Year year

the era style to use.