object Infinity extends Duration with Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Infinity
- Duration
- Product
- Equals
- Serializable
- Serializable
- Ordered
- Comparable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
*(factor: Double): Duration
Multiplies by factor, when nanoseconds overflow
Long.MaxValue
returnsInfinity
, if factor is negative returnsDuration.Zero
. -
def
+(other: Duration): Duration
Adds other
Duration
. -
def
<(that: Duration): Boolean
- Definition Classes
- Ordered
-
def
<=(that: Duration): Boolean
- Definition Classes
- Ordered
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
>(that: Duration): Boolean
- Definition Classes
- Ordered
-
def
>=(that: Duration): Boolean
- Definition Classes
- Ordered
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJava: java.time.Duration
The
java.time.Duration
returned for an infinite Duration is technically "only" ~2x10^16 hours long (Long.MaxValue
number of seconds) - def asScala: SpecificScalaDuration
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
compare(other: Duration): Int
- Definition Classes
- Infinity → Ordered
-
def
compareTo(that: Duration): Int
- Definition Classes
- Ordered → Comparable
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
fold[Z](infinity: ⇒ Z, finite: (Finite) ⇒ Z): Z
- Definition Classes
- Duration
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
isZero: Boolean
Whether this is a zero duration
-
final
def
max(other: Duration): Duration
- Definition Classes
- Duration
-
final
def
min(other: Duration): Duration
- Definition Classes
- Duration
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def render: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
toMillis: Long
Number of milliseconds.
-
val
toNanos: Long
Number of nanoseconds.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()