public static class TimeSpan.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TimeSpan |
build()
Use this method to create TimeSpan objects with the builder pattern.
|
TimeSpan.Builder |
days(long days) |
TimeSpan.Builder |
hours(long hours) |
TimeSpan.Builder |
microseconds(long microseconds) |
TimeSpan.Builder |
milliseconds(long milliseconds) |
TimeSpan.Builder |
minutes(long minutes) |
TimeSpan.Builder |
nanoseconds(long nanoseconds) |
TimeSpan.Builder |
seconds(long seconds) |
public TimeSpan.Builder nanoseconds(long nanoseconds)
public TimeSpan.Builder microseconds(long microseconds)
public TimeSpan.Builder milliseconds(long milliseconds)
public TimeSpan.Builder seconds(long seconds)
public TimeSpan.Builder minutes(long minutes)
public TimeSpan.Builder hours(long hours)
public TimeSpan.Builder days(long days)
public TimeSpan build()