Object/Trait

io.github.netvl.picopickle.TypesComponent

Writer

Related Docs: trait Writer | package TypesComponent

Permalink

object Writer

Contains various constructors for custom Writers.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Writer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply[T](ff: (T) ⇒ BValue): (TypesComponent.this)#Writer[T]

    Permalink

    Creates a new writer from a partial function of type T => backend.BValue.

    Creates a new writer from a partial function of type T => backend.BValue.

    This is the main constructor for custom writers. The writers returned by this function ignore the accumulator argument (as most of writers should do).

    An example:

    case class A(x: Int, y: String)
    
    import backendConversionImplicits._
    implicit val aWriter: Writer[A] = Writer {
      case A(x, y) => Map("a" -> x.toBackend, "b" -> y.toBackend).toBackend
    }

    As manual construction of complex objects may quickly turn very unwieldy, it is recommended to use converters instead.

    T

    source type

    ff

    a function defining writer behavior

    returns

    a writer delegating to the provided function

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def fromF0[T](ff: (T) ⇒ (Option[BValue]) ⇒ BValue): (TypesComponent.this)#Writer[T]

    Permalink

    Creates a new writer from a function of type T => (Option[backend.BValue] => backend.BValue).

    Creates a new writer from a function of type T => (Option[backend.BValue] => backend.BValue).

    Mostly intended for internal use. Regular clients should use apply method.

    T

    source type

    ff

    a function defining writer behavior

    returns

    a writer delegating to the provided function

  11. def fromF0N[T](ff: (T) ⇒ (Option[BValue]) ⇒ BValue): (TypesComponent.this)#Writer[T]

    Permalink

    Same as writePF0, but does not delegate nulls handling to NullHandler.

    Same as writePF0, but does not delegate nulls handling to NullHandler.

    Mostly intended for internal use. Regular clients should use apply method.

    T

    source type

    ff

    a function defining writer behavior

    returns

    a writer delegating to the provided function

  12. def fromF1[T](ff: (T, Option[BValue]) ⇒ BValue): (TypesComponent.this)#Writer[T]

    Permalink

    Creates a new writer from a partial function of type (T, Option[backend.BValue]) => backend.BValue.

    Creates a new writer from a partial function of type (T, Option[backend.BValue]) => backend.BValue.

    Mostly intended for internal use. Regular clients should use apply method.

    T

    source type

    ff

    a function defining writer behavior

    returns

    a writer delegating to the provided function

  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped