SingletonWriter

upickle.implicits.CaseClassReadWriters.SingletonWriter
class SingletonWriter[T](f: T) extends CaseClassWriter[T]

Attributes

Graph
Supertypes
trait CaseClassWriter[T]
trait ObjectWriter[T]
trait Writer[T]
trait Transformer[T]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def length(v: T): Int
def writeToObject[R](ctx: ObjVisitor[_, R], v: T): Unit

Inherited methods

def comap[U](f: U => T): MapWriter[U, T]

Attributes

Inherited from:
Writer
def comapNulls[U](f: U => T): MapWriterNulls[U, T]

Attributes

Inherited from:
Writer
def isJsonDictKey: Boolean

Whether or not the type being written can be used as a key in a JSON dictionary. Opt-in, and only applicable to writers that write primitive types like strings, booleans, numbers, etc..

Whether or not the type being written can be used as a key in a JSON dictionary. Opt-in, and only applicable to writers that write primitive types like strings, booleans, numbers, etc..

Attributes

Inherited from:
Writer
def narrow[K]: Writer[K]

Attributes

Inherited from:
Writer
def transform[V](v: T, out: Visitor[_, V]): V

Attributes

Inherited from:
Writer
def write[V](out: Visitor[_, V], v: T): V

Attributes

Inherited from:
Writer
def write0[R](out: Visitor[_, R], v: T): R

Attributes

Inherited from:
CaseClassWriter
def writeSnippetMappedName[R, V](ctx: ObjVisitor[_, R], mappedArgsI: CharSequence, w: Any, value: Any): Unit

Attributes

Inherited from:
CaseClassWriter

Deprecated and Inherited methods

def writeSnippet[R, V](objectAttributeKeyWriteMap: CharSequence => CharSequence, ctx: ObjVisitor[_, R], mappedArgsI: String, w: Any, value: Any): Unit

Attributes

Deprecated
true
Inherited from:
CaseClassWriter