Trait

org.hammerlab.test.implicits

Conversions

Related Doc: package implicits

Permalink

trait Conversions[T, U] extends AnyRef

Instantiate this trait to obtain a bunch of handy implicits for using one type (T) interchangeably with another (U; in tests).

One gotcha is that is more than one Conversions instance's implicit members are in scope, they will clobber each other since they'll have the same names; import-renaming can be used per-member to get around this.

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

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 convertArray(s: Array[T])(implicit f: (T) ⇒ U, ct: ClassTag[U]): Array[U]

    Permalink
  7. implicit def convertMapKeys[V](m: Map[T, V])(implicit f: (T) ⇒ U): Map[U, V]

    Permalink
  8. implicit def convertOpt(ot: Option[T])(implicit f: (T) ⇒ U): Option[U]

    Permalink
  9. implicit def convertSome(ot: Some[T])(implicit f: (T) ⇒ U): Option[U]

    Permalink
  10. implicit def convertTuple2Keys[V](t: (T, V))(implicit f: (T) ⇒ U): (U, V)

    Permalink
  11. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. implicit def toArray(s: Seq[T])(implicit f: (T) ⇒ U, ct: ClassTag[U]): Array[U]

    Permalink
  22. implicit def toList(s: Seq[T])(implicit f: (T) ⇒ U): List[U]

    Permalink
  23. implicit def toSeq(s: Seq[T])(implicit f: (T) ⇒ U): Seq[U]

    Permalink
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. implicit def toTupleArray[V](s: Array[(T, V)])(implicit arg0: ClassTag[V], f: (T) ⇒ U): Array[(U, V)]

    Permalink
  26. implicit def toTupleList[V](s: Seq[(T, V)])(implicit f: (T) ⇒ U): List[(U, V)]

    Permalink
  27. implicit def toVector(s: Seq[T])(implicit f: (T) ⇒ U): Vector[U]

    Permalink
  28. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped