IntDecades

inline class IntDecades(value: Int) : Comparable<IntDecades>

A number of decades.

Constructors

IntDecades
Link copied to clipboard
common
fun IntDecades(value: Int)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

compareTo
Link copied to clipboard
common
open operator override fun compareTo(other: IntDecades): Int
div
Link copied to clipboard
common
operator fun div(scalar: Int): IntDecades
Divides this duration by a scalar value.
operator fun div(scalar: Long): LongDecades
Divides this duration by a scalar value.
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
isNegative
Link copied to clipboard
common
fun isNegative(): Boolean
Checks if this duration is negative.
isPositive
Link copied to clipboard
common
fun isPositive(): Boolean
Checks if this duration is positive.
isZero
Link copied to clipboard
common
fun isZero(): Boolean
Checks if this duration is zero.
minus
Link copied to clipboard
common
operator fun minus(centuries: IntCenturies): IntDecades
operator fun minus(decades: IntDecades): IntDecades
operator fun minus(months: IntMonths): IntMonths
operator fun minus(years: IntYears): IntYears
operator fun minus(centuries: LongCenturies): LongDecades
operator fun minus(decades: LongDecades): LongDecades
operator fun minus(months: LongMonths): LongMonths
operator fun minus(years: LongYears): LongYears
plus
Link copied to clipboard
common
operator fun plus(centuries: IntCenturies): IntDecades
operator fun plus(decades: IntDecades): IntDecades
operator fun plus(months: IntMonths): IntMonths
operator fun plus(years: IntYears): IntYears
operator fun plus(centuries: LongCenturies): LongDecades
operator fun plus(decades: LongDecades): LongDecades
operator fun plus(months: LongMonths): LongMonths
operator fun plus(years: LongYears): LongYears
rem
Link copied to clipboard
common
operator fun rem(scalar: Int): IntDecades
operator fun rem(scalar: Long): LongDecades
times
Link copied to clipboard
common
operator fun times(scalar: Int): IntDecades
Multiplies this duration by a scalar value.
operator fun times(scalar: Long): LongDecades
Multiplies this duration by a scalar value.
toComponents
Link copied to clipboard
common
inline fun <T> toComponents(action: (centuries: IntCenturies, decades: IntDecades) -> T): T
toLong
Link copied to clipboard
common
fun toLong(): Long
Converts this duration to a Long value.
toLongDecades
Link copied to clipboard
common
fun toLongDecades(): LongDecades
Converts this duration to LongDecades.
toString
Link copied to clipboard
common
open override fun toString(): String
Converts this duration to an ISO-8601 time interval representation.
unaryMinus
Link copied to clipboard
common
operator fun unaryMinus(): IntDecades
Negates this duration.

Properties

absoluteValue
Link copied to clipboard
common
val absoluteValue: IntDecades
The absolute value of this duration.
inCenturies
Link copied to clipboard
common
val inCenturies: IntCenturies
Converts this duration to the number of whole centuries.
inMonths
Link copied to clipboard
common
val inMonths: IntMonths
Converts this duration to months.
inYears
Link copied to clipboard
common
val inYears: IntYears
Converts this duration to years.
value
Link copied to clipboard
common
val value: Int
The underlying value.

Extensions

toJavaPeriod
Link copied to clipboard
fun IntDecades.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.