Packages

c

little.time.Implicits

DurationType

implicit final class DurationType extends AnyVal

Provides extension methods to java.time.Duration

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DurationType
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DurationType(duration: Duration)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def *(n: Long): Duration

    Gets duration after multiplication.

    Gets duration after multiplication.

    n

    number by which duration is multiplied

  4. def +(amount: Duration): Duration

    Gets duration with specified amount added.

    Gets duration with specified amount added.

    amount

    duration to add

  5. def -(amount: Duration): Duration

    Gets duration with specified amount subtracted.

    Gets duration with specified amount subtracted.

    amount

    duration to subtract

  6. def /(n: Long): Duration

    Gets duration after division.

    Gets duration after division.

    n

    number by which duration is divided

  7. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. val duration: Duration
  10. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def iterateTo(end: Duration, step: Duration = Duration.ofSeconds(1)): Iterator[Duration]

    Creates iterator to end duration (inclusive).

    Creates iterator to end duration (inclusive).

    end

    end duration

    Exceptions thrown

    IllegalArgumentException if step is zero.

  13. def iterateUntil(end: Duration, step: Duration = Duration.ofSeconds(1)): Iterator[Duration]

    Creates iterator to end duration (exclusive).

    Creates iterator to end duration (exclusive).

    end

    end duration

  14. def max(other: Duration): Duration

    Compares to other duration and returns the greater value.

    Compares to other duration and returns the greater value.

    other

    other duration

  15. def min(other: Duration): Duration

    Compares to other duration and returns the lesser value.

    Compares to other duration and returns the lesser value.

    other

    other duration

  16. def toString(): String
    Definition Classes
    Any
  17. def unary_-: Duration

    Gets negated duration.

Inherited from AnyVal

Inherited from Any

Ungrouped