doc / ch.tutteli.atrium.reporting.text.impl / TextObjectFormatterCommon

TextObjectFormatterCommon

abstract class TextObjectFormatterCommon : TextObjectFormatter (source)

Base class for the platform specific implementation of DefaultTextObjectFormatter.

It cannot format Java's Class, this has to be done in the JVM module. Moreover it requires a platform specific implementation of identityHash and format a KClass.

Constructors

<init>

TextObjectFormatterCommon(translator: Translator)

Base class for the platform specific implementation of DefaultTextObjectFormatter.

Functions

format

open fun format(value: Any?): String

Returns a formatted version of the given value.

abstract fun format(kClass: KClass<*>): String

identityHash

abstract fun identityHash(indent: String, any: Any): String

Inheritors

AbstractTextObjectFormatter

abstract class AbstractTextObjectFormatter : TextObjectFormatterCommon