object SpanSugar extends SpanSugar
Companion object that facilitates the importing of SpanSugar members as
an alternative to mixing it in. One use case is to import SpanSugar members so you can use
them in the Scala interpreter:
$scala -classpath scalatest.jar
Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_29).
Type in expressions to have them evaluated.
Type :help for more information.
scala> import org.scalatest._
import org.scalatest._
scala> import concurrent.Eventually._
import org.scalatest.concurrent.Eventually._
scala> import time.SpanSugar._
import org.scalatest.time.SpanSugar._
scala> eventually(timeout(100 millis)) { 1 + 1 should equal (3) }
- Source
- SpanSugar.scala
- Alphabetic
- By Inheritance
- SpanSugar
- SpanSugar
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
-    class FloatingGrainOfTime extends AnyRefClass containing methods that return a Spantime value calculated from theDoublevalue passed to theFloatingGrainOfTimeconstructor.Class containing methods that return a Spantime value calculated from theDoublevalue passed to theFloatingGrainOfTimeconstructor.- Definition Classes
- SpanSugar
 
-    class GrainOfTime extends AnyRefClass containing methods that return a Spantime value calculated from theLongvalue passed to theGrainOfTimeconstructor.Class containing methods that return a Spantime value calculated from theLongvalue passed to theGrainOfTimeconstructor.- Definition Classes
- SpanSugar
 
Value Members
-   final  def !=(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def ##: Int- Definition Classes
- AnyRef → Any
 
-   final  def ==(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def asInstanceOf[T0]: T0- Definition Classes
- Any
 
-    def clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
 
-   implicit  def convertDoubleToGrainOfTime(d: Double): FloatingGrainOfTimeImplicit conversion that adds time units methods to Doubles.Implicit conversion that adds time units methods to Doubles.- returns
- a - FloatingGrainOfTimewrapping the passed- Double
 - Definition Classes
- SpanSugar
 
-   implicit  def convertFloatToGrainOfTime(f: Float): FloatingGrainOfTimeImplicit conversion that adds time units methods to Floats.Implicit conversion that adds time units methods to Floats.- returns
- a - FloatingGrainOfTimewrapping the passed- Float
 - Definition Classes
- SpanSugar
 
-   implicit  def convertIntToGrainOfTime(i: Int): GrainOfTimeImplicit conversion that adds time units methods to Ints.Implicit conversion that adds time units methods to Ints.- returns
- a - GrainOfTimewrapping the passed- Int
 - Definition Classes
- SpanSugar
 
-   implicit  def convertLongToGrainOfTime(i: Long): GrainOfTimeImplicit conversion that adds time units methods to Longs.Implicit conversion that adds time units methods to Longs.- returns
- a - GrainOfTimewrapping the passed- Long
 - Definition Classes
- SpanSugar
 
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-    def equals(arg0: AnyRef): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-    def hashCode(): Int- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-   final  def ne(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def notify(): Unit- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-   final  def notifyAll(): Unit- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-   implicit  val postfixOps: postfixOps- Definition Classes
- SpanSugar
 
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-    def toString(): String- Definition Classes
- AnyRef → Any
 
-   final  def wait(arg0: Long, arg1: Int): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
Deprecated Value Members
-    def finalize(): Unit- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated