Emptiness

org.scalatest.enablers.Emptiness
See theEmptiness companion trait
object Emptiness

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

  • org.scalactic.ColCompatHelper.Iterable

  • String

  • Array

  • scala.Option

  • java.util.Collection

  • java.util.Map

  • arbitary object with a isEmpty() method that returns Boolean

  • arbitary object with a parameterless isEmpty method that returns Boolean

Attributes

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

Members list

Implicits

Implicits

implicit def emptinessOfAnyRefWithIsEmptyMethod[T <: AnyRef { def isEmpty(): Boolean; }]: Emptiness[T]

Enable Emptiness implementation for any arbitrary object with a isEmpty() method that returns Boolean

Enable Emptiness implementation for any arbitrary object with a isEmpty() method that returns Boolean

Type parameters

T

any type that has a isEmpty() method that returns Boolean

Attributes

Returns

Emptiness[T] that supports T in be empty syntax

implicit def emptinessOfAnyRefWithParameterlessIsEmptyMethod[T <: AnyRef { def isEmpty: Boolean; }]: Emptiness[T]

Enable Emptiness implementation for any arbitrary object with a isEmpty method that returns Boolean

Enable Emptiness implementation for any arbitrary object with a isEmpty method that returns Boolean

Type parameters

T

any type that has a parameterless isEmpty method that returns Boolean

Attributes

Returns

Emptiness[T] that supports T in be empty syntax

implicit def emptinessOfArray[E]: Emptiness[Array[E]]

Enable Emptiness implementation for Array

Enable Emptiness implementation for Array

Type parameters

E

the type of the element in the Array

Attributes

Returns

Emptiness[Array[E]] that supports Array in be empty syntax

implicit def emptinessOfIterable[E, ITR <: (Iterable)]: Emptiness[ITR[E]]

Enable Emptiness implementation for org.scalactic.ColCompatHelper.Iterable

Enable Emptiness implementation for org.scalactic.ColCompatHelper.Iterable

Type parameters

E

the type of the element in the org.scalactic.ColCompatHelper.Iterable

ITR

any subtype of org.scalactic.ColCompatHelper.Iterable

Attributes

Returns

Emptiness[ITR[E]] that supports org.scalactic.ColCompatHelper.Iterable in be empty syntax

implicit def emptinessOfJavaCollection[E, JCOL <: (Collection)]: Emptiness[JCOL[E]]

Enable Emptiness implementation for java.util.Collection

Enable Emptiness implementation for java.util.Collection

Type parameters

E

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

JCOL

any subtype of java.util.Collection

Attributes

Returns

Emptiness[JCOL[E]] that supports java.util.Collection in be empty syntax

implicit def emptinessOfJavaMap[K, V, JMAP <: (Map)]: Emptiness[JMAP[K, V]]

Enable Emptiness implementation for java.util.Map

Enable Emptiness implementation for java.util.Map

Type parameters

JMAP

any subtype of java.util.Map

K

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

V

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

Attributes

Returns

Emptiness[JMAP[K, V]] that supports java.util.Map in be empty syntax

implicit def emptinessOfOption[E, OPT <: (Option)]: Emptiness[OPT[E]]

Enable Emptiness implementation for scala.Option

Enable Emptiness implementation for scala.Option

Type parameters

E

the type of the element in the scala.Option

OPT

any subtype of scala.Option

Attributes

Returns

Emptiness[OPT[E]] that supports scala.Option in be empty syntax

implicit def emptinessOfString: Emptiness[String]

Enable Emptiness implementation for String

Enable Emptiness implementation for String

Attributes

Returns

Emptiness[String] that supports String in be empty syntax