StopwatchBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Builder to construct an Indexable
for a stopwatch.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Constants
public static final String
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.
Sets the current laps, if any, associated with this stopwatch.
Sets the time when the stopwatch last began running.
Sets the current status of the stopwatch.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-02-11 UTC.
[null,null,["Last updated 2021-02-11 UTC."],[],[],null,["public final class **StopwatchBuilder** extends [IndexableBuilder](/docs/reference/android/com/google/firebase/appindexing/builders/IndexableBuilder)\\\u003c[StopwatchBuilder](/docs/reference/android/com/google/firebase/appindexing/builders/StopwatchBuilder)\\\u003e \nBuilder to construct an [Indexable](/docs/reference/android/com/google/firebase/appindexing/Indexable)\nfor a stopwatch. \n\nConstant Summary\n\nPublic Method Summary\n\nInherited Method Summary \nFrom class [com.google.firebase.appindexing.builders.IndexableBuilder](/docs/reference/android/com/google/firebase/appindexing/builders/IndexableBuilder) \n\nFrom class java.lang.Object \n\nConstants \n\npublic static final [String](//developer.android.com/reference/java/lang/String.html)\n**PAUSED** \nConstant Value: \"Paused\" \n\npublic static final [String](//developer.android.com/reference/java/lang/String.html)\n**STARTED** \nConstant Value: \"Started\" \n\npublic static final [String](//developer.android.com/reference/java/lang/String.html)\n**UNKNOWN** \nConstant Value: \"Unknown\"\n\nPublic Methods \n\npublic [StopwatchBuilder](/docs/reference/android/com/google/firebase/appindexing/builders/StopwatchBuilder)\n**setElapsedTime** (long elapsedTimeInMilliseconds) \nSets the total time accumulated when the stopwatch was last paused, in\nmilliseconds. \n\npublic [StopwatchBuilder](/docs/reference/android/com/google/firebase/appindexing/builders/StopwatchBuilder)\n**setLaps** ([StopwatchLapBuilder...](/docs/reference/android/com/google/firebase/appindexing/builders/StopwatchLapBuilder) laps) \nSets the current laps, if any, associated with this stopwatch. \n\npublic [StopwatchBuilder](/docs/reference/android/com/google/firebase/appindexing/builders/StopwatchBuilder)\n**setStartTime** ([Calendar](//developer.android.com/reference/java/util/Calendar.html) startTime) \nSets the time when the stopwatch last began running. \n\npublic [StopwatchBuilder](/docs/reference/android/com/google/firebase/appindexing/builders/StopwatchBuilder)\n**setStopwatchStatus** ([String](//developer.android.com/reference/java/lang/String.html) status) \nSets the current status of the stopwatch. \n\nParameters"]]