Sequencing

org.scalatest.enablers.Sequencing
See theSequencing companion trait
object Sequencing

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

  • scala.collection.GenSeq

  • scala.collection.SortedSet

  • scala.collection.SortedMap

  • Array

  • java.util.List

  • java.util.SortedSet

  • java.util.SortedMap

  • String

Attributes

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

Members list

Implicits

Implicits

implicit def convertEqualityToArraySequencing[E](equality: Equality[E]): Sequencing[Array[E]]

Implicit conversion that converts an Equality of type E into Sequencing of type Array[E]. This is required to support the explicit Equality syntax, for example:

Implicit conversion that converts an Equality of type E into Sequencing of type Array[E]. This is required to support the explicit Equality syntax, for example:

(Array("hi", "he") should contain inOrderOnly ("HI", "HE")) (after being lowerCased)

(after being lowerCased) will returns an Equality[String] and this implicit conversion will convert it into Sequencing[Array[String]].

Type parameters

E

type of elements in the Array

Value parameters

equality

Equality of type E

Attributes

Returns

Sequencing of type Array[E]

implicit def convertEqualityToEverySequencing[E](equality: Equality[E]): Sequencing[Every[E]]

Implicit conversion that converts an Equality of type E into Sequencing of type Every[E]. This is required to support the explicit Equality syntax, for example:

Implicit conversion that converts an Equality of type E into Sequencing of type Every[E]. This is required to support the explicit Equality syntax, for example:

(Every("hi", "he") should contain inOrderOnly ("HI", "HE")) (after being lowerCased)

(after being lowerCased) will returns an Equality[String] and this implicit conversion will convert it into Sequencing[Every[String]].

Type parameters

E

type of elements in the Every

Value parameters

equality

Equality of type E

Attributes

Returns

Sequencing of type Every[E]

implicit def convertEqualityToGenSeqSequencing[E, SEQ <: (Seq)](equality: Equality[E]): Sequencing[SEQ[E]]

Implicit conversion that converts an Equality of type E into Sequencing of type SEQ[E], where SEQ is a subtype of scala.collection.GenSeq. This is required to support the explicit Equality syntax, for example:

Implicit conversion that converts an Equality of type E into Sequencing of type SEQ[E], where SEQ is a subtype of scala.collection.GenSeq. This is required to support the explicit Equality syntax, for example:

(List("hi", "he") should contain inOrderOnly ("HI", "HE")) (after being lowerCased)

(after being lowerCased) will returns an Equality[String] and this implicit conversion will convert it into Sequencing[List[String]].

Type parameters

E

type of elements in the scala.collection.GenSeq

SEQ

subtype of scala.collection.GenSeq

Value parameters

equality

Equality of type E

Attributes

Returns

Sequencing of type SEQ[E]

implicit def convertEqualityToJavaListSequencing[E, JLIST <: (List)](equality: Equality[E]): Sequencing[JLIST[E]]

Implicit conversion that converts an Equality of type E into Sequencing of type JLIST[E], where JLIST is a subtype of java.util.List. This is required to support the explicit Equality syntax, for example:

Implicit conversion that converts an Equality of type E into Sequencing of type JLIST[E], where JLIST is a subtype of java.util.List. This is required to support the explicit Equality syntax, for example:

val javaList = new java.util.ArrayList[String]()
javaList.add("hi", "he")
(javaList should contain ("HI", "HE")) (after being lowerCased)

(after being lowerCased) will returns an Equality[String] and this implicit conversion will convert it into Sequencing[java.util.ArrayList[String]].

Type parameters

E

type of elements in the java.util.List

JLIST

subtype of java.util.List

Value parameters

equality

Equality of type E

Attributes

Returns

Sequencing of type JLIST[E]

implicit def convertEqualityToJavaSortedMapSequencing[K, V, JMAP <: (SortedMap)](equality: Equality[Entry[K, V]]): Sequencing[JMAP[K, V]]

Implicit conversion that converts an Equality of type java.util.Map.Entry[K, V] into Sequencing of type JMAP[K, V], where JMAP is a subtype of java.util.SortedMap. This is required to support the explicit Equality syntax, for example:

Implicit conversion that converts an Equality of type java.util.Map.Entry[K, V] into Sequencing of type JMAP[K, V], where JMAP is a subtype of java.util.SortedMap. This is required to support the explicit Equality syntax, for example:

val javaMap = new java.util.TreeMap[Int, String]()
javaMap.put(1, "one")
// lowerCased needs to be implemented as Normalization[java.util.Map.Entry[K, V]]
(javaMap should contain inOrderOnly (Entry(1, "ONE"))) (after being lowerCased)

(after being lowerCased) will returns an java.util.Map.Entry[Int, String] and this implicit conversion will convert it into Aggregating[java.util.TreeMap[Int, String]].

Type parameters

JMAP

subtype of java.util.SortedMap

K

the type of the key in the java.util.SortedMap

V

the type of the value in the java.util.SortedMap

Value parameters

equality

Equality of type java.util.Map.Entry[K, V]

Attributes

Returns

Sequencing of type JMAP[K, V]

implicit def convertEqualityToJavaSortedSetSequencing[E, JSET <: (SortedSet)](equality: Equality[E]): Sequencing[JSET[E]]

Implicit conversion that converts an Equality of type E into Sequencing of type JSET[E], where JSET is a subtype of java.util.SortedSet. This is required to support the explicit Equality syntax, for example:

Implicit conversion that converts an Equality of type E into Sequencing of type JSET[E], where JSET is a subtype of java.util.SortedSet. This is required to support the explicit Equality syntax, for example:

val javaSet = new java.util.TreeSet[String]()
javaSet.add("hi", "he")
(javaSet should contain inOrderOnly ("HI", "HE")) (after being lowerCased)

(after being lowerCased) will returns an Equality[String] and this implicit conversion will convert it into Sequencing[java.util.TreeSet[String]].

Type parameters

E

type of elements in the java.util.List

JSET

subtype of java.util.List

Value parameters

equality

Equality of type E

Attributes

Returns

Sequencing of type JLIST[E]

implicit def convertEqualityToSortedMapSequencing[K, V, MAP <: (SortedMap)](equality: Equality[(K, V)]): Sequencing[MAP[K, V]]

Implicit conversion that converts an Equality of type (K, V) into Sequencing of type MAP[K, V], where MAP is a subtype of scala.collection.SortedMap. This is required to support the explicit Equality syntax, for example:

Implicit conversion that converts an Equality of type (K, V) into Sequencing of type MAP[K, V], where MAP is a subtype of scala.collection.SortedMap. This is required to support the explicit Equality syntax, for example:

// lowerCased needs to be implemented as Normalization[(K, V)]
(SortedMap("hi" -> "hi", "he" -> "he") should contain inOrderOnly ("HI" -> "HI", "HE" -> "HE")) (after being lowerCased)

(after being lowerCased) will returns an Equality[String] and this implicit conversion will convert it into Sequencing[SortedMap[String, String]].

Type parameters

K

the type of the key in the scala.collection.SortedMap

MAP

subtype of scala.collection.SortedMap

V

the type of the value in the scala.collection.SortedMap

Value parameters

equality

Equality of type (K, V)

Attributes

Returns

Sequencing of type MAP[K, V]

implicit def convertEqualityToSortedSetSequencing[E, SET <: (SortedSet)](equality: Equality[E]): Sequencing[SET[E]]

Implicit conversion that converts an Equality of type E into Sequencing of type SET[E], where SET is a subtype of scala.collection.SortedSet. This is required to support the explicit Equality syntax, for example:

Implicit conversion that converts an Equality of type E into Sequencing of type SET[E], where SET is a subtype of scala.collection.SortedSet. This is required to support the explicit Equality syntax, for example:

(SortedSet("hi", "he") should contain inOrderOnly ("HI", "HE")) (after being lowerCased)

(after being lowerCased) will returns an Equality[String] and this implicit conversion will convert it into Sequencing[SortedSet[String]].

Type parameters

E

type of elements in the scala.collection.SortedSet

SET

subtype of scala.collection.SortedSet

Value parameters

equality

Equality of type E

Attributes

Returns

Sequencing of type SET[E]

implicit def convertEqualityToStringSequencing(equality: Equality[Char]): Sequencing[String]

Implicit conversion that converts an Equality of type Char into Sequencing of type String. This is required to support the explicit Equality syntax, for example:

Implicit conversion that converts an Equality of type Char into Sequencing of type String. This is required to support the explicit Equality syntax, for example:

// lowerCased needs to be implemented as Normalization[Char]
("hi hello" should contain inOrderOnly ('E')) (after being lowerCased)

(after being lowerCased) will returns an Equality[Char] and this implicit conversion will convert it into Sequencing[String].

Value parameters

equality

Equality of type Char

Attributes

Returns

Sequencing of type String

implicit def sequencingNatureOfArray[E](implicit equality: Equality[E]): Sequencing[Array[E]]

Implicit to support Sequencing nature of Array.

Implicit to support Sequencing nature of Array.

Type parameters

E

the type of the element in the Array

Value parameters

equality

Equality type class that is used to check equality of element in the Array

Attributes

Returns

Sequencing[Array[E]] that supports Array in relevant contain syntax

implicit def sequencingNatureOfEvery[E](implicit equality: Equality[E]): Sequencing[Every[E]]

Implicit to support Sequencing nature of Every.

Implicit to support Sequencing nature of Every.

Type parameters

E

the type of the element in the Every

Value parameters

equality

Equality type class that is used to check equality of element in the Every

Attributes

Returns

Sequencing[Every[E]] that supports Every in relevant contain syntax

implicit def sequencingNatureOfGenSeq[E, SEQ <: (Seq)](implicit equality: Equality[E]): Sequencing[SEQ[E]]

Implicit to support Sequencing nature of scala.collection.GenSeq.

Implicit to support Sequencing nature of scala.collection.GenSeq.

Type parameters

E

the type of the element in the scala.collection.GenSeq

SEQ

any subtype of scala.collection.GenSeq

Value parameters

equality

Equality type class that is used to check equality of element in the scala.collection.GenSeq

Attributes

Returns

Sequencing[SEQ[E]] that supports scala.collection.GenSeq in relevant contain syntax

implicit def sequencingNatureOfJavaList[E, JLIST <: (List)](implicit equality: Equality[E]): Sequencing[JLIST[E]]

Implicit to support Sequencing nature of java.util.List.

Implicit to support Sequencing nature of java.util.List.

Type parameters

E

the type of the element in the java.util.List

JLIST

any subtype of java.util.List

Value parameters

equality

Equality type class that is used to check equality of element in the java.util.List

Attributes

Returns

Sequencing[JLIST[E]] that supports java.util.List in relevant contain syntax

implicit def sequencingNatureOfJavaSortedMap[K, V, JMAP <: (SortedMap)](implicit equality: Equality[Entry[K, V]]): Sequencing[JMAP[K, V]]

Implicit to support Sequencing nature of java.util.SortedMap.

Implicit to support Sequencing nature of java.util.SortedMap.

Type parameters

JMAP

any subtype of java.util.SortedMap

K

the type of the key in the java.util.SortedMap

V

the type of the value in the java.util.SortedMap

Value parameters

equality

Equality type class that is used to check equality of entry in the java.util.SortedMap

Attributes

Returns

Sequencing[JMAP[K, V]] that supports java.util.SortedMap in relevant contain syntax

implicit def sequencingNatureOfJavaSortedSet[E, JSET <: (SortedSet)](implicit equality: Equality[E]): Sequencing[JSET[E]]

Implicit to support Sequencing nature of java.util.SortedSet.

Implicit to support Sequencing nature of java.util.SortedSet.

Type parameters

E

the type of the element in the java.util.SortedSet

JSET

any subtype of java.util.SortedSet

Value parameters

equality

Equality type class that is used to check equality of element in the java.util.SortedSet

Attributes

Returns

Sequencing[JSET[E]] that supports java.util.SortedSet in relevant contain syntax

implicit def sequencingNatureOfSortedMap[K, V, MAP <: (SortedMap)](implicit equality: Equality[(K, V)]): Sequencing[MAP[K, V]]

Implicit to support Sequencing nature of scala.collection.SortedMap.

Implicit to support Sequencing nature of scala.collection.SortedMap.

Type parameters

K

the type of the key in the scala.collection.SortedMap

MAP

any subtype of scala.collection.SortedMap

V

the type of the value in the scala.collection.SortedMap

Value parameters

equality

Equality type class that is used to check equality of element in the scala.collection.SortedMap

Attributes

Returns

Sequencing[MAP[K, V]] that supports scala.collection.SortedMap in relevant contain syntax

implicit def sequencingNatureOfSortedSet[E, SET <: (SortedSet)](implicit equality: Equality[E]): Sequencing[SET[E]]

Implicit to support Sequencing nature of scala.collection.SortedSet.

Implicit to support Sequencing nature of scala.collection.SortedSet.

Type parameters

E

the type of the element in the scala.collection.SortedSet

SET

any subtype of scala.collection.SortedSet

Value parameters

equality

Equality type class that is used to check equality of element in the scala.collection.SortedSet

Attributes

Returns

Sequencing[SET[E]] that supports scala.collection.SortedSet in relevant contain syntax

implicit def sequencingNatureOfString(implicit equality: Equality[Char]): Sequencing[String]

Implicit to support Sequencing nature of String.

Implicit to support Sequencing nature of String.

Value parameters

equality

Equality type class that is used to check equality of Char in the String

Attributes

Returns

Sequencing[String] that supports String in relevant contain syntax