StopwatchBuilder

public final class StopwatchBuilder extends IndexableBuilder<StopwatchBuilder>

Builder to construct an Indexable for a stopwatch.

Constant Summary

String PAUSED
String STARTED
String UNKNOWN

Public Method Summary

StopwatchBuilder
setElapsedTime(long elapsedTimeInMilliseconds)
Sets the total time accumulated when the stopwatch was last paused, in milliseconds.
StopwatchBuilder
setLaps(StopwatchLapBuilder... laps)
Sets the current laps, if any, associated with this stopwatch.
StopwatchBuilder
setStartTime(Calendar startTime)
Sets the time when the stopwatch last began running.
StopwatchBuilder
setStopwatchStatus(String status)
Sets the current status of the stopwatch.

Inherited Method Summary

Constants

public static final String PAUSED

Constant Value: "Paused"

public static final String STARTED

Constant Value: "Started"

public static final String UNKNOWN

Constant Value: "Unknown"

Public Methods

public StopwatchBuilder setElapsedTime (long elapsedTimeInMilliseconds)

Sets the total time accumulated when the stopwatch was last paused, in milliseconds.

public StopwatchBuilder setLaps (StopwatchLapBuilder... laps)

Sets the current laps, if any, associated with this stopwatch.

public StopwatchBuilder setStartTime (Calendar startTime)

Sets the time when the stopwatch last began running.

public StopwatchBuilder setStopwatchStatus (String status)

Sets the current status of the stopwatch.

Parameters
status Must be one of { STARTED, PAUSED, UNKNOWN }.