Size

org.scalatest.enablers.Size
See theSize companion trait
object Size

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

  • org.scalactic.ColCompatHelper.Iterable

  • String

  • Array

  • java.util.Collection

  • java.util.Map

  • arbitary object with a size() method that returns Int

  • arbitary object with a parameterless size method that returns Int

  • arbitary object with a getSize() method that returns Int

  • arbitary object with a parameterless getSize method that returns Int

  • arbitary object with a size() method that returns Long

  • arbitary object with a parameterless size method that returns Long

  • arbitary object with a getSize() method that returns Long

  • arbitary object with a parameterless getSize method that returns Long

Attributes

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

Members list

Implicits

Implicits

implicit def sizeOfAnyRefWithGetSizeMethodForInt[T <: AnyRef { def getSize(): Int; }]: Size[T]

Enable Size implementation for arbitary object with getSize() method that returns Int.

Enable Size implementation for arbitary object with getSize() method that returns Int.

Type parameters

T

any type with getSize() method that returns Int

Attributes

Returns

Size[T] that supports T in have size syntax

implicit def sizeOfAnyRefWithGetSizeMethodForLong[T <: AnyRef { def getSize(): Long; }]: Size[T]

Enable Size implementation for arbitary object with getSize() method that returns Long.

Enable Size implementation for arbitary object with getSize() method that returns Long.

Type parameters

T

any type with getSize() method that returns Long

Attributes

Returns

Size[T] that supports T in have size syntax

implicit def sizeOfAnyRefWithParameterlessGetSizeMethodForInt[T <: AnyRef { def getSize: Int; }]: Size[T]

Enable Size implementation for arbitary object with parameterless getSize method that returns Int.

Enable Size implementation for arbitary object with parameterless getSize method that returns Int.

Type parameters

T

any type with parameterless getSize method that returns Int

Attributes

Returns

Size[T] that supports T in have size syntax

implicit def sizeOfAnyRefWithParameterlessGetSizeMethodForLong[T <: AnyRef { def getSize: Long; }]: Size[T]

Enable Size implementation for arbitary object with getSize method that returns Long.

Enable Size implementation for arbitary object with getSize method that returns Long.

Type parameters

T

any type with getSize method that returns Long

Attributes

Returns

Size[T] that supports T in have size syntax

implicit def sizeOfAnyRefWithParameterlessSizeMethodForInt[T <: AnyRef { def size: Int; }]: Size[T]

Enable Size implementation for arbitary object with parameterless size method that returns Int.

Enable Size implementation for arbitary object with parameterless size method that returns Int.

Type parameters

T

any type with parameterless size method that returns Int

Attributes

Returns

Size[T] that supports T in have size syntax

implicit def sizeOfAnyRefWithParameterlessSizeMethodForLong[T <: AnyRef { def size: Long; }]: Size[T]

Enable Size implementation for arbitary object with parameterless size method that returns Long.

Enable Size implementation for arbitary object with parameterless size method that returns Long.

Type parameters

T

any type with parameterless size method that returns Long

Attributes

Returns

Size[T] that supports T in have size syntax

implicit def sizeOfAnyRefWithSizeMethodForInt[T <: AnyRef { def size(): Int; }]: Size[T]

Enable Size implementation for arbitary object with size() method that returns Int.

Enable Size implementation for arbitary object with size() method that returns Int.

Type parameters

T

any type with size() method that returns Int

Attributes

Returns

Size[T] that supports T in have size syntax

implicit def sizeOfAnyRefWithSizeMethodForLong[T <: AnyRef { def size(): Long; }]: Size[T]

Enable Size implementation for arbitary object with size() method that returns Long.

Enable Size implementation for arbitary object with size() method that returns Long.

Type parameters

T

any type with size() method that returns Long

Attributes

Returns

Size[T] that supports T in have size syntax

implicit def sizeOfArray[E]: Size[Array[E]]

Enable Size implementation for Array

Enable Size implementation for Array

Type parameters

E

the type of the element in the Array

Attributes

Returns

Size[Array[E]] that supports Array in have size syntax

implicit def sizeOfIterable[ITR <: Iterable[_]]: Size[ITR]

Enable Size implementation for org.scalactic.ColCompatHelper.Iterable

Enable Size implementation for org.scalactic.ColCompatHelper.Iterable

Type parameters

ITR

any subtype of org.scalactic.ColCompatHelper.Iterable

Attributes

Returns

Size[ITR] that supports org.scalactic.ColCompatHelper.Iterable in have size syntax

implicit def sizeOfJavaCollection[JCOL <: Collection[_]]: Size[JCOL]

Enable Size implementation for java.util.Collection

Enable Size implementation for java.util.Collection

Type parameters

JCOL

any subtype of java.util.Collection

Attributes

Returns

Size[JCOL] that supports java.util.Collection in have size syntax

implicit def sizeOfJavaMap[JMAP <: Map[_, _]]: Size[JMAP]

Enable Size implementation for java.util.Map

Enable Size implementation for java.util.Map

Type parameters

JMAP

any subtype of java.util.Map

Attributes

Returns

Size[JMAP] that supports java.util.Map in have size syntax

implicit val sizeOfString: Size[String]

Enable Size implementation for String

Enable Size implementation for String

Attributes

Returns

Size[String] that supports String in have size syntax