IntDecades

A number of decades.

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

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

Divides this duration by a scalar value.

operator fun div(scalar: Int): IntDecades
operator fun div(scalar: Long): LongDecades
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

Checks if this duration is negative.

fun isNegative(): Boolean
isPositive
Link copied to clipboard
common

Checks if this duration is positive.

fun isPositive(): Boolean
isZero
Link copied to clipboard
common

Checks if this duration is zero.

fun isZero(): Boolean
minus
Link copied to clipboard
common
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
plus
Link copied to clipboard
common
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
rem
Link copied to clipboard
common
operator fun rem(scalar: Int): IntDecades
operator fun rem(scalar: Long): LongDecades
times
Link copied to clipboard
common

Multiplies this duration by a scalar value.

operator fun times(scalar: Int): IntDecades
operator fun times(scalar: Long): LongDecades
toComponents
Link copied to clipboard
common
inline fun <T> toComponents(action: (IntCenturies, IntDecades) -> T): T
toLong
Link copied to clipboard
common

Converts this duration to a Long value.

fun toLong(): Long
toLongDecades
Link copied to clipboard
common

Converts this duration to LongDecades.

fun toLongDecades(): LongDecades
toString
Link copied to clipboard
common

Converts this duration to an ISO-8601 time interval representation.

open override fun toString(): String
unaryMinus
Link copied to clipboard
common

Negates this duration.

operator fun unaryMinus(): IntDecades

Properties

absoluteValue
Link copied to clipboard
common

The absolute value of this duration.

val absoluteValue: IntDecades
inCenturies
Link copied to clipboard
common

Converts this duration to the number of whole centuries.

val inCenturies: IntCenturies
inMonths
Link copied to clipboard
common

Converts this duration to months.

val inMonths: IntMonths
inYears
Link copied to clipboard
common

Converts this duration to years.

val inYears: IntYears
value
Link copied to clipboard
common

The underlying value.

val value: Int

Extensions

toJavaPeriod
Link copied to clipboard

Converts this duration to an equivalent Java Period.

fun IntDecades.toJavaPeriod(): Period