ObjectMatcher

Companion:
class
class Object
trait Matchable
class Any

Type members

Classlikes

case class MapEntry[K, V](key: K, value: V)
case class SetEntry[T](t: T)

Types

type SeqEntry[T] = MapEntry[Int, T]

Value members

Concrete methods

def map[K, V]: ObjectMatcherMapHelper[K, V]

Matcher for map like collections e.g. Map. There has to exist an implicit instance of com.softwaremill.diffx.MapLike for such collection

Matcher for map like collections e.g. Map. There has to exist an implicit instance of com.softwaremill.diffx.MapLike for such collection

Type parameters:
K

type of the key

V

type of the value

Matcher for all ordered collections e.g. List, Seq. There has to exist an implicit instance of com.softwaremill.diffx.SeqLike for such collection

Matcher for all ordered collections e.g. List, Seq. There has to exist an implicit instance of com.softwaremill.diffx.SeqLike for such collection

Type parameters:
T

type of the element

Matcher for unordered collections like e.g. Set. There has to exist an implicit instance of com.softwaremill.diffx.SetLike for such collection

Matcher for unordered collections like e.g. Set. There has to exist an implicit instance of com.softwaremill.diffx.SetLike for such collection

Type parameters:
T

type of the element

Implicits

Implicits

implicit def mapEntryByKey[K : ObjectMatcher, V]: ObjectMatcher[MapEntry[K, V]]

Given MapEntry[K,V], match them using K's objectMatcher

Given MapEntry[K,V], match them using K's objectMatcher

Inherited implicits

implicit def default[T]: ObjectMatcher[T]