stripe-android
camera-core
/
com.stripe.android.camera.framework.time
/
Duration
Duration
@
RestrictTo
(
value
=
[
RestrictTo.Scope.LIBRARY_GROUP
]
)
sealed
class
Duration
:
Comparable
<
Duration
>
Content copied to clipboard
Since kotlin time is still experimental, implement our own version for utility.
Types
Functions
Properties
Types
Companion
Link copied to clipboard
object
Companion
Content copied to clipboard
Functions
compare
To
Link copied to clipboard
open
operator override
fun
compareTo
(
other
:
Duration
)
:
Int
Content copied to clipboard
div
Link copied to clipboard
open
operator
fun
div
(
denominator
:
Double
)
:
Duration
Content copied to clipboard
open
operator
fun
div
(
denominator
:
Float
)
:
Duration
Content copied to clipboard
open
operator
fun
div
(
denominator
:
Int
)
:
Duration
Content copied to clipboard
open
operator
fun
div
(
denominator
:
Long
)
:
Duration
Content copied to clipboard
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
Content copied to clipboard
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
Content copied to clipboard
minus
Link copied to clipboard
open
operator
fun
minus
(
other
:
Duration
)
:
Duration
Content copied to clipboard
plus
Link copied to clipboard
open
operator
fun
plus
(
other
:
Duration
)
:
Duration
Content copied to clipboard
times
Link copied to clipboard
open
operator
fun
times
(
multiplier
:
Double
)
:
Duration
Content copied to clipboard
open
operator
fun
times
(
multiplier
:
Float
)
:
Duration
Content copied to clipboard
open
operator
fun
times
(
multiplier
:
Int
)
:
Duration
Content copied to clipboard
open
operator
fun
times
(
multiplier
:
Long
)
:
Duration
Content copied to clipboard
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
Content copied to clipboard
unary
Minus
Link copied to clipboard
open
operator
fun
unaryMinus
(
)
:
Duration
Content copied to clipboard
Properties
in
Days
Link copied to clipboard
abstract
val
inDays
:
Double
Content copied to clipboard
in
Hours
Link copied to clipboard
abstract
val
inHours
:
Double
Content copied to clipboard
in
Microseconds
Link copied to clipboard
abstract
val
inMicroseconds
:
Double
Content copied to clipboard
in
Milliseconds
Link copied to clipboard
abstract
val
inMilliseconds
:
Double
Content copied to clipboard
in
Minutes
Link copied to clipboard
abstract
val
inMinutes
:
Double
Content copied to clipboard
in
Months
Link copied to clipboard
abstract
val
inMonths
:
Double
Content copied to clipboard
in
Nanoseconds
Link copied to clipboard
abstract
val
inNanoseconds
:
Long
Content copied to clipboard
in
Seconds
Link copied to clipboard
abstract
val
inSeconds
:
Double
Content copied to clipboard
in
Weeks
Link copied to clipboard
abstract
val
inWeeks
:
Double
Content copied to clipboard
in
Years
Link copied to clipboard
abstract
val
inYears
:
Double
Content copied to clipboard