Return type | Name and parameters |
---|---|
Duration
|
div(long scalar)
Supports the division operator; equivalent to calling the Duration#dividedBy(long) method. |
boolean
|
isNonnegative()
Returns true if this duration is zero or positive. |
boolean
|
isNonpositive()
Returns true if this duration is zero or negative. |
boolean
|
isPositive()
Returns true if this duration is positive, excluding zero. |
Duration
|
minus(long seconds)
Returns a Duration that is seconds seconds shorter that this duration.
|
Duration
|
multiply(long scalar)
Supports the multiplication operator; equivalent to calling the Duration#multipliedBy(long) method. |
Duration
|
negative()
Supports the unary minus operator; equivalent to calling the Duration#negated() method. |
Duration
|
next()
Returns a Duration that is one second longer than this duration. |
Duration
|
plus(long seconds)
Returns a Duration that is seconds seconds longer than this duration.
|
Duration
|
positive()
Supports the unary plus operator; equivalent to calling the Duration#abs() method. |
Duration
|
previous()
Returns a Duration that is one second shorter than this duration. |
addShutdownHook
, any
, any
, asBoolean
, asType
, collect
, collect
, collect
, contains
, count
, dump
, each
, eachWithIndex
, equals
, every
, every
, find
, find
, findAll
, findAll
, findIndexOf
, findIndexOf
, findIndexValues
, findIndexValues
, findLastIndexOf
, findLastIndexOf
, findResult
, findResult
, flatten
, getAt
, getMetaClass
, getMetaPropertyValues
, getProperties
, grep
, grep
, groupBy
, groupBy
, hasProperty
, identity
, inject
, inject
, inspect
, invokeMethod
, is
, isCase
, iterator
, join
, metaClass
, print
, print
, printf
, printf
, println
, println
, println
, putAt
, respondsTo
, respondsTo
, setMetaClass
, size
, split
, sprintf
, sprintf
, sum
, sum
, tap
, toArrayString
, toSpreadMap
, toString
, use
, use
, use
, with
, with
, withTraits
Supports the division operator; equivalent to calling the Duration#dividedBy(long) method.
scalar
- the value to divide byReturns true if this duration is zero or positive.
Returns true if this duration is zero or negative.
Returns true if this duration is positive, excluding zero.
Returns a Duration that is seconds
seconds shorter that this duration.
seconds
- the number of seconds to subtractSupports the multiplication operator; equivalent to calling the Duration#multipliedBy(long) method.
scalar
- the value to multiply bySupports the unary minus operator; equivalent to calling the Duration#negated() method.
Returns a Duration that is one second longer than this duration.
Returns a Duration that is seconds
seconds longer than this duration.
seconds
- the number of seconds to addSupports the unary plus operator; equivalent to calling the Duration#abs() method.