kotest-assertions / io.kotest.assertions.show / Show

Show

interface Show<in A>

The Show typeclass abstracts the ability to obtain a String representation of any object. It is used as a replacement for Java's Object#toString so that custom representations of the object can be printed.

Functions

show

Returns a printable version of this object as an instance of Printed

abstract fun show(a: A): Printed

Inheritors

ArrayShow

object ArrayShow : Show<Any>

DefaultShow

A default implementation of Show that handles arrays, collections and primitives as well as nullable values.

object DefaultShow : Show<Any?>

IterableShow

class IterableShow<T> : Show<Iterable<T>>

KClassShow

object KClassShow : Show<KClass<*>>

ListShow

class ListShow<T> : Show<List<T>>

MapShow

object MapShow : Show<Map<*, *>>

PathShow

object PathShow : Show<Path>

StringShow

object StringShow : Show<String>