Show

ostrat.Show
See theShow companion object
trait Show[-A] extends ShowType[A]

A type class for string, text and visual representation of objects. An alternative to toString. This trait has more demanding ambitions. The capabilities of decimal place precision and explicit typing for numbers are placed defined here and in the corresponding Tell trait, although they have no meaning / purpose for many types, as separating them adds enormous complexity for very little gain.

Attributes

Companion
object
Graph
Supertypes
trait ShowType[A]
trait Persist
class Object
trait Matchable
class Any
Known subtypes
trait PersistBoth[A]
class Persist2Both[A1, A2, A]
class Persist3Both[A1, A2, A3, A]
class PersistDbl2Both[A]
class PersistDbl3Both[A]
class PersistInt2Both[A]
class PersistSeqSpecBoth[Ae, A]
class ShowIterableClass[A, R]
trait ShowCompound[A]
trait ShowNFixed[A]
trait Show1PlusFixed[A1, A]
trait Show2PlusFixed[A1, A2, A]
trait Show2[A1, A2, A]
class Show2Gen[A1, A2, A]
trait ShowDbl2[A]
class ShowDbl2Imp[A]
trait ShowInt2[A]
class ShowInt2Gen[A]
trait Show3Plus[A1, A2, A3, A]
trait Show3[A1, A2, A3, A]
class Show3Imp[A1, A2, A3, A]
trait ShowDbl3[A]
class ShowDbl3Imp[A]
trait ShowInt3[A]
class ShowInt3Imp[A]
trait Show4Plus[A1, A2, A3, A4, A]
trait Show4[A1, A2, A3, A4, A]
class Show4Imp[A1, A2, A3, A4, A]
class ShowDbl4[A]
trait ShowInt4[A]
class ShowInt4Imp[A]
trait Show5Plus[A1, A2, A3, A4, A5, A]
trait Show5[A1, A2, A3, A4, A5, A]
class Show5Imp[A1, A2, A3, A4, A5, A]
trait ShowInt5[A]
trait Show6Plus[A1, A2, A3, A4, A5, A6, A]
trait Show6[A1, A2, A3, A4, A5, A6, A]
class Show6Imp[A1, A2, A3, A4, A5, A6, A]
trait ShowTellN[A]
trait ShowNRepeat[Ar, A]
trait Show1PlusRepeat[A1, Ar, A]
trait Show1Repeat[A1, Ar, A]
class Show1ArrayRepeat[A1, Ar, A]
trait ShowNOptRepeat[Ar, A]
trait Show1PlusOptRepeat[A1, Ar, A]
class Show1OptRepeat[A1, Ar, A]
trait ShowSeqLike[Ae, A]
trait ShowSeq[A, SA]
trait ShowIterable[A, SA]
trait ShowSequ[A, SA]
class ShowSeqLikeImp[Ae, A]
trait ShowSeqSpec[Ae, A]
trait ShowSimple[A]
trait ShowEffectReport[A]
trait ShowFileWritten[A]
class ShowSum2[ST, A1, A2]
trait ShowTell[A]
trait PersistTell[A]
trait PersistTell2[A1, A2, A]
class PersistTell2Imp[A1, A2, A]
class PersistTellInt2[A]
class PersistTell3[A1, A2, A3, A]
trait ShowTell2[A1, A2, R]
class ShowTell2Imp[A1, A2, R]
trait ShowTellDbl2[R]
class ShowTellDbl2Imp[R]
trait ShowTellElemDbl2[R]
class ShowTellDbl2Imp[R]
trait ShowTellInt2[R]
class ShowTellInt2Imp[R]
trait ShowTell3[A1, A2, A3, R]
class ShowTell3Imp[A1, A2, A3, R]
trait ShowTell4[A1, A2, A3, A4, R]
class ShowTell4Imp[A1, A2, A3, A4, R]
class ShowTellInt4[R]
class ShowTellSimple[R]
trait ShowTellSum[A]
Show all

Members list

Value members

Abstract methods

def show(obj: A, style: ShowStyle, maxPlaces: Int, minPlaces: Int): String
def strT(obj: A): String

Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.

Provides the standard string representation for the object. Its called ShowT to indicate this is a type class method that acts upon an object rather than a method on the object being shown.

Attributes

def syntaxDepth(obj: A): Int

Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.

Simple values such as Int, String, Double have a syntax depth of one. A Tuple3[String, Int, Double] has a depth of 2. Not clear whether this should always be determined at compile time or if sometimes it should be determined at runtime.

Attributes

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

This property determines if the type can be used with Multiple syntax.

This property determines if the type can be used with Multiple syntax.

MyObj * 7

. for describing sequences succinctly. This is not desirable for some types such as numerical and mathematical vector types as this could be confusing 3 * 4 should resolve to an Int of value 12, not a Multiple(3, 4).

Attributes

Inherited from:
Persist

Inherited and Abstract methods

The type of the object to be persisted.

The type of the object to be persisted.

Attributes

Inherited from:
Persist