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
inDays
Link copied to clipboard
abstract
val
inDays
:
Double
Content copied to clipboard
inHours
Link copied to clipboard
abstract
val
inHours
:
Double
Content copied to clipboard
inMicroseconds
Link copied to clipboard
abstract
val
inMicroseconds
:
Double
Content copied to clipboard
inMilliseconds
Link copied to clipboard
abstract
val
inMilliseconds
:
Double
Content copied to clipboard
inMinutes
Link copied to clipboard
abstract
val
inMinutes
:
Double
Content copied to clipboard
inMonths
Link copied to clipboard
abstract
val
inMonths
:
Double
Content copied to clipboard
inNanoseconds
Link copied to clipboard
abstract
val
inNanoseconds
:
Long
Content copied to clipboard
inSeconds
Link copied to clipboard
abstract
val
inSeconds
:
Double
Content copied to clipboard
inWeeks
Link copied to clipboard
abstract
val
inWeeks
:
Double
Content copied to clipboard
inYears
Link copied to clipboard
abstract
val
inYears
:
Double
Content copied to clipboard