|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiweekly.util.Duration.Builder
public static class Duration.Builder
Builds Duration
objects.
Constructor Summary | |
---|---|
Duration.Builder()
Creates a new Duration builder. |
|
Duration.Builder(Duration source)
Creates a new Duration builder. |
Method Summary | |
---|---|
Duration |
build()
Builds the final Duration object. |
Duration.Builder |
days(Integer days)
Sets the number of days |
Duration.Builder |
hours(Integer hours)
Sets the number of hours |
Duration.Builder |
minutes(Integer minutes)
Sets the number of minutes |
Duration.Builder |
prior(boolean prior)
Sets whether the duration should be negative. |
Duration.Builder |
seconds(Integer seconds)
Sets the number of seconds. |
Duration.Builder |
weeks(Integer weeks)
Sets the number of weeks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Duration.Builder()
Duration
builder.
public Duration.Builder(Duration source)
Duration
builder.
source
- the object to copy fromMethod Detail |
---|
public Duration.Builder weeks(Integer weeks)
weeks
- the number of weeks
public Duration.Builder days(Integer days)
days
- the number of days
public Duration.Builder hours(Integer hours)
hours
- the number of hours
public Duration.Builder minutes(Integer minutes)
minutes
- the number of minutes
public Duration.Builder seconds(Integer seconds)
seconds
- the number of seconds
public Duration.Builder prior(boolean prior)
prior
- true to be negative, false not to be
public Duration build()
Duration
object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |