toggle menu
Measured
0.4.1
common
switch theme
search in API
Measured
/
io.nacular.measured.units
/
UnitsProduct
Units
Product
class
UnitsProduct
<
A
:
Units
,
B
:
Units
>
(
val
first
:
A
,
val
second
:
B
)
:
Units
(
source
)
Represents the product of two Units: A * B.
Parameters
first
unit being multiplied
second
unit being multiplied
Members
Members & Extensions
Constructors
Units
Product
Link copied to clipboard
constructor
(
first
:
A
,
second
:
B
)
Properties
first
Link copied to clipboard
val
first
:
A
second
Link copied to clipboard
val
second
:
B
Inherited properties
ratio
Link copied to clipboard
val
ratio
:
Double
=
1.0
suffix
Link copied to clipboard
val
suffix
:
String
Inherited functions
div
Link copied to clipboard
@
JvmName
(
name
=
"div1"
)
operator
fun
<
A
:
Units
,
B
:
Units
>
UnitsProduct
<
A
,
B
>
.
div
(
other
:
A
)
:
Measure
<
B
>
(A * B) / A
@
JvmName
(
name
=
"div1"
)
operator
fun
<
A
:
Units
,
B
:
Units
,
C
:
Units
>
UnitsProduct
<
A
,
B
>
.
div
(
other
:
UnitsProduct
<
C
,
B
>
)
:
UnitsRatio
<
A
,
C
>
(A * B) / (C * B)
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String