PeriodMethods

final implicit class PeriodMethods(period: Period) extends AnyVal

Provides extension methods for java.time.Period

class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def *(n: Int): Period

Gets duration after multiplication.

Gets duration after multiplication.

Value parameters:
n

number by which period is multiplied

def +(amount: Period): Period

Gets period with specified amount added.

Gets period with specified amount added.

Value parameters:
amount

period to add

def -(amount: Period): Period

Gets period with specified amount subtracted.

Gets period with specified amount subtracted.

Value parameters:
amount

period to subtract

def unary_-: Period

Gets negated period.

Gets negated period.