Sortable

org.scalatest.enablers.Sortable
See theSortable companion trait
object Sortable

Companion object for Sortable that provides implicit implementations for the following types:

  • scala.collection.GenSeq

  • Array

  • java.util.List

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Sortable.type

Members list

Implicits

Implicits

implicit def sortableNatureOfArray[E](implicit ordering: Ordering[E]): Sortable[Array[E]]

Enable Sortable implementation for Array

Enable Sortable implementation for Array

Type parameters

E

type of elements in the Array

Value parameters

ordering

scala.math.Ordering of type E

Attributes

Returns

Sortable[Array[E]] that supports Array in be sortable syntax

implicit def sortableNatureOfJavaList[E, JLIST <: (List)](implicit ordering: Ordering[E]): Sortable[JLIST[E]]

Enable Sortable implementation for java.util.List

Enable Sortable implementation for java.util.List

Type parameters

E

type of elements in the java.util.List

JLIST

any subtype of java.util.List

Value parameters

ordering

scala.math.Ordering of type E

Attributes

Returns

Sortable[JLIST[E]] that supports java.util.List in be sortable syntax

implicit def sortableNatureOfSeq[E, SEQ <: (Seq)](implicit ordering: Ordering[E]): Sortable[SEQ[E]]

Enable Sortable implementation for scala.collection.GenSeq

Enable Sortable implementation for scala.collection.GenSeq

Type parameters

E

type of elements in the scala.collection.GenSeq

SEQ

any subtype of scala.collection.GenSeq

Value parameters

ordering

scala.math.Ordering of type E

Attributes

Returns

Sortable[SEQ[E]] that supports scala.collection.GenSeq in be sortable syntax

implicit def sortableNatureOfString(implicit ordering: Ordering[Char]): Sortable[String]

Enable Sortable implementation for String

Enable Sortable implementation for String

Value parameters

ordering

scala.math.Ordering of type Char

Attributes

Returns

Sortable[String] that supports String in be sortable syntax