LongWeeks

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

A number of weeks.

Constructors

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

Types

Companion
Link copied to clipboard
common
object Companion

Functions

compareTo
Link copied to clipboard
common
open operator override fun compareTo(other: LongWeeks): Int
div
Link copied to clipboard
common
operator fun div(scalar: Int): LongWeeks
Divides this duration by a scalar value.
operator fun div(scalar: Long): LongWeeks
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(days: IntDays): LongDays
operator fun minus(weeks: IntWeeks): LongWeeks
operator fun minus(days: LongDays): LongDays
operator fun minus(weeks: LongWeeks): LongWeeks
plus
Link copied to clipboard
common
operator fun plus(days: IntDays): LongDays
operator fun plus(weeks: IntWeeks): LongWeeks
operator fun plus(days: LongDays): LongDays
operator fun plus(weeks: LongWeeks): LongWeeks
rem
Link copied to clipboard
common
operator fun rem(scalar: Int): LongWeeks
operator fun rem(scalar: Long): LongWeeks
times
Link copied to clipboard
common
operator fun times(scalar: Int): LongWeeks
Multiplies this duration by a scalar value.
operator fun times(scalar: Long): LongWeeks
Multiplies this duration by a scalar value.
toInt
Link copied to clipboard
common
fun toInt(): Int
Converts this duration to an Int value.
toIntWeeks
Link copied to clipboard
common
fun toIntWeeks(): IntWeeks
Converts this duration to IntWeeks.
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(): LongWeeks
Negates this duration.

Properties

absoluteValue
Link copied to clipboard
common
val absoluteValue: LongWeeks
The absolute value of this duration.
inDays
Link copied to clipboard
common
val inDays: LongDays
Converts this duration to days.
value
Link copied to clipboard
common
val value: Long
The underlying value.

Extensions

asPeriod
Link copied to clipboard
common
fun LongWeeks.asPeriod(): Period
Converts this duration into a Period with the same number of weeks.
minus
Link copied to clipboard
common
operator fun LongWeeks.minus(period: Period): Period
plus
Link copied to clipboard
common
operator fun LongWeeks.plus(period: Period): Period
toJavaPeriod
Link copied to clipboard
fun LongWeeks.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.