LongCenturies

inline class LongCenturies(value: Long) : Comparable<LongCenturies>

A number of centuries.

Constructors

LongCenturies
Link copied to clipboard
common
fun LongCenturies(value: Long)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

compareTo
Link copied to clipboard
common
open operator override fun compareTo(other: LongCenturies): Int
div
Link copied to clipboard
common
operator fun div(scalar: Int): LongCenturies
Divides this duration by a scalar value.
operator fun div(scalar: Long): LongCenturies
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): LongCenturies
operator fun minus(decades: IntDecades): LongDecades
operator fun minus(months: IntMonths): LongMonths
operator fun minus(years: IntYears): LongYears
operator fun minus(centuries: LongCenturies): LongCenturies
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): LongCenturies
operator fun plus(decades: IntDecades): LongDecades
operator fun plus(months: IntMonths): LongMonths
operator fun plus(years: IntYears): LongYears
operator fun plus(centuries: LongCenturies): LongCenturies
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): LongCenturies
operator fun rem(scalar: Long): LongCenturies
times
Link copied to clipboard
common
operator fun times(scalar: Int): LongCenturies
Multiplies this duration by a scalar value.
operator fun times(scalar: Long): LongCenturies
Multiplies this duration by a scalar value.
toInt
Link copied to clipboard
common
fun toInt(): Int
Converts this duration to an Int value.
toIntCenturies
Link copied to clipboard
common
fun toIntCenturies(): IntCenturies
Converts this duration to IntCenturies.
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(): LongCenturies
Negates this duration.

Properties

absoluteValue
Link copied to clipboard
common
val absoluteValue: LongCenturies
The absolute value of this duration.
inDecades
Link copied to clipboard
common
val inDecades: LongDecades
Converts this duration to decades.
inMonths
Link copied to clipboard
common
val inMonths: LongMonths
Converts this duration to months.
inYears
Link copied to clipboard
common
val inYears: LongYears
Converts this duration to years.
value
Link copied to clipboard
common
val value: Long
The underlying value.

Extensions

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