core / io.islandtime.measures / IntDecades

IntDecades

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) inline class IntDecades : Comparable<IntDecades>

A number of decades.

Constructors

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

<init>

A number of decades.

<init>(value: Int)

Properties

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

absoluteValue

Returns the absolute value.

val absoluteValue: IntDecades
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

inCenturies

Convert to whole centuries.

val inCenturies: IntCenturies
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

inMonths

Convert to months.

val inMonths: IntMonths
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

inYears

Convert to years.

val inYears: IntYears
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

value

The underlying value.

val value: Int

Functions

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

compareTo

fun compareTo(other: IntDecades): Int
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

div

Divide by a scalar value.

operator fun div(scalar: Int): IntDecades
operator fun div(scalar: Long): LongDecades
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

isNegative

Is this duration negative?

fun isNegative(): Boolean
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

isPositive

Is this duration positive?

fun isPositive(): Boolean
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

isZero

Is this duration zero?

fun isZero(): Boolean
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

minus

operator fun minus(months: IntMonths): IntMonths
operator fun minus(months: LongMonths): LongMonths
operator fun minus(years: IntYears): IntYears
operator fun minus(years: LongYears): LongYears
operator fun minus(decades: IntDecades): IntDecades
operator fun minus(decades: LongDecades): LongDecades
operator fun minus(centuries: IntCenturies): IntDecades
operator fun minus(centuries: LongCenturies): LongDecades
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

plus

operator fun plus(months: IntMonths): IntMonths
operator fun plus(months: LongMonths): LongMonths
operator fun plus(years: IntYears): IntYears
operator fun plus(years: LongYears): LongYears
operator fun plus(decades: IntDecades): IntDecades
operator fun plus(decades: LongDecades): LongDecades
operator fun plus(centuries: IntCenturies): IntDecades
operator fun plus(centuries: LongCenturies): LongDecades
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

rem

operator fun rem(scalar: Int): IntDecades
operator fun rem(scalar: Long): LongDecades
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

times

Multiply by a scalar value.

operator fun times(scalar: Int): IntDecades
operator fun times(scalar: Long): LongDecades
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

toComponents

fun <T> toComponents(action: (centuries: IntCenturies, decades: IntDecades) -> T): T
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

toLong

Convert to a unit-less Long value.

fun toLong(): Long
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

toLongDecades

Convert to LongDecades.

fun toLongDecades(): LongDecades
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

toString

Convert to an ISO-8601 time interval representation.

fun toString(): String
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

unaryMinus

Negate the value.

operator fun unaryMinus(): IntDecades

Companion Object Properties

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

MAX

The largest supported value.

val MAX: IntDecades
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

MIN

The smallest supported value.

val MIN: IntDecades

Extension Functions

(jvm)

toJavaPeriod

Convert to an equivalent Java Period.

fun IntDecades.toJavaPeriod(): Period