LongCenturies

A number of centuries.

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

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

Divides this duration by a scalar value.

operator fun div(scalar: Int): LongCenturies
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): LongMonths
operator fun minus(months: LongMonths): LongMonths
operator fun minus(years: IntYears): LongYears
operator fun minus(years: LongYears): LongYears
operator fun minus(decades: IntDecades): LongDecades
operator fun minus(decades: LongDecades): LongDecades
operator fun minus(centuries: IntCenturies): LongCenturies
operator fun minus(centuries: LongCenturies): LongCenturies
plus
Link copied to clipboard
common
operator fun plus(months: IntMonths): LongMonths
operator fun plus(months: LongMonths): LongMonths
operator fun plus(years: IntYears): LongYears
operator fun plus(years: LongYears): LongYears
operator fun plus(decades: IntDecades): LongDecades
operator fun plus(decades: LongDecades): LongDecades
operator fun plus(centuries: IntCenturies): LongCenturies
operator fun plus(centuries: LongCenturies): LongCenturies
rem
Link copied to clipboard
common
operator fun rem(scalar: Int): LongCenturies
operator fun rem(scalar: Long): LongCenturies
times
Link copied to clipboard
common

Multiplies this duration by a scalar value.

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

Converts this duration to an Int value.

fun toInt(): Int
toIntCenturies
Link copied to clipboard
common

Converts this duration to IntCenturies.

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

Properties

absoluteValue
Link copied to clipboard
common

The absolute value of this duration.

val absoluteValue: LongCenturies
inDecades
Link copied to clipboard
common

Converts this duration to decades.

val inDecades: LongDecades
inMonths
Link copied to clipboard
common

Converts this duration to months.

val inMonths: LongMonths
inYears
Link copied to clipboard
common

Converts this duration to years.

val inYears: LongYears
value
Link copied to clipboard
common

The underlying value.

val value: Long

Extensions

toJavaPeriod
Link copied to clipboard

Converts this duration to an equivalent Java Period.

fun LongCenturies.toJavaPeriod(): Period