IntCenturies

A number of centuries.

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

Constructors

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

Types

Companion
Link copied to clipboard
common
object Companion

Functions

compareTo
Link copied to clipboard
common
open operator override fun compareTo(other: IntCenturies): Int
div
Link copied to clipboard
common

Divides this duration by a scalar value.

operator fun div(scalar: Int): IntCenturies
operator fun div(scalar: Long): LongCenturies
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): IntCenturies
operator fun minus(centuries: LongCenturies): LongCenturies
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): IntCenturies
operator fun plus(centuries: LongCenturies): LongCenturies
rem
Link copied to clipboard
common
operator fun rem(scalar: Int): IntCenturies
operator fun rem(scalar: Long): LongCenturies
times
Link copied to clipboard
common

Multiplies this duration by a scalar value.

operator fun times(scalar: Int): IntCenturies
operator fun times(scalar: Long): LongCenturies
toLong
Link copied to clipboard
common

Converts this duration to a Long value.

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

Converts this duration to LongCenturies.

fun toLongCenturies(): LongCenturies
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(): IntCenturies

Properties

absoluteValue
Link copied to clipboard
common

The absolute value of this duration.

val absoluteValue: IntCenturies
inDecades
Link copied to clipboard
common

Converts this duration to decades.

val inDecades: IntDecades
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 IntCenturies.toJavaPeriod(): Period