Object/Trait

org.scalatest.time

SpanSugar

Related Docs: trait SpanSugar | package time

Permalink

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
Linear Supertypes
SpanSugar, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SpanSugar
  2. SpanSugar
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class FloatingGrainOfTime extends AnyRef

    Permalink

    Class containing methods that return a Span time value calculated from the Double value passed to the FloatingGrainOfTime constructor.

    Class containing methods that return a Span time value calculated from the Double value passed to the FloatingGrainOfTime constructor.

    Definition Classes
    SpanSugar
  2. class GrainOfTime extends AnyRef

    Permalink

    Class containing methods that return a Span time value calculated from the Long value passed to the GrainOfTime constructor.

    Class containing methods that return a Span time value calculated from the Long value passed to the GrainOfTime constructor.

    Definition Classes
    SpanSugar

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. implicit def convertDoubleToGrainOfTime(d: Double): FloatingGrainOfTime

    Permalink

    Implicit conversion that adds time units methods to Doubles.

    Implicit conversion that adds time units methods to Doubles.

    returns

    a FloatingGrainOfTime wrapping the passed Double

    Definition Classes
    SpanSugar
  7. implicit def convertFloatToGrainOfTime(f: Float): FloatingGrainOfTime

    Permalink

    Implicit conversion that adds time units methods to Floats.

    Implicit conversion that adds time units methods to Floats.

    returns

    a FloatingGrainOfTime wrapping the passed Float

    Definition Classes
    SpanSugar
  8. implicit def convertIntToGrainOfTime(i: Int): GrainOfTime

    Permalink

    Implicit conversion that adds time units methods to Ints.

    Implicit conversion that adds time units methods to Ints.

    returns

    a GrainOfTime wrapping the passed Int

    Definition Classes
    SpanSugar
  9. implicit def convertLongToGrainOfTime(i: Long): GrainOfTime

    Permalink

    Implicit conversion that adds time units methods to Longs.

    Implicit conversion that adds time units methods to Longs.

    returns

    a GrainOfTime wrapping the passed Long

    Definition Classes
    SpanSugar
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. implicit val postfixOps: postfixOps

    Permalink
    Definition Classes
    SpanSugar
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SpanSugar

Inherited from AnyRef

Inherited from Any

Ungrouped