TupleNTo

class TupleNTo[V](val readers: Array[To[_]], val f: Array[Any] => V) extends SimpleTo[V]
trait SimpleTo[V]
trait SimpleVisitor[Any, V]
trait To[V]
trait Visitor[Any, V]
trait AutoCloseable
class Object
trait Matchable
class Any

Value members

Concrete methods

override
def expectedMsg: String
Definition Classes
override
def visitArray(length: Int): ArrVisitor[Any, V]
Definition Classes

Inherited methods

override
def close(): Unit

==Responsibility== Generally, whoever creates the visitor should be responsible for closing it, i.e. not intermediate transform(v: Visitor) methods themselves.

==Responsibility== Generally, whoever creates the visitor should be responsible for closing it, i.e. not intermediate transform(v: Visitor) methods themselves.

==Self Closing== Given that common usage is most often single-valued (e.g. "{}"), rather than multi-valued (e.g. "{} {} {}"), Visitors may self-close (e.g. visitor.map{v => Try(v.close); v)} after a single value to prevent resource leaks, but are encouraged to expose both forms (i.e. single/multiple), if supportable.

==Multiple close() calls/Idempotency== Visitors are encouraged to respond gracefully if close() is called multiple times. If an underlying resource would throw if already closed, this may mean adding a private var isClosed: Boolean field to prevent multiple calls.

Definition Classes
Visitor -> AutoCloseable
Inherited from
Visitor
override
def map[Z](f: V => Z): To[Z]
Definition Classes
Inherited from
To
override
def mapNulls[Z](f: V => Z): To[Z]
Definition Classes
Inherited from
To
def narrow[K <: V]: To[K]
Inherited from
To
def visitBinary(bytes: Array[Byte], offset: Int, len: Int): V
Inherited from
SimpleVisitor
def visitChar(c: Char): V
Inherited from
SimpleVisitor
def visitExt(tag: Byte, bytes: Array[Byte], offset: Int, len: Int): V
Inherited from
SimpleVisitor
def visitFalse(): V
Inherited from
SimpleVisitor
def visitFloat32(d: Float): V
Inherited from
SimpleVisitor
def visitFloat64(d: Double): V
Inherited from
SimpleVisitor
def visitFloat64String(s: String): V
Inherited from
SimpleVisitor
def visitFloat64StringParts(cs: CharSequence, decIndex: Int, expIndex: Int): V
Inherited from
SimpleVisitor
def visitInt32(i: Int): V
Inherited from
SimpleVisitor
def visitInt64(l: Long): V
Inherited from
SimpleVisitor
def visitNull(): V
Inherited from
SimpleVisitor
def visitObject(length: Int): ObjVisitor[Any, V]
Inherited from
SimpleVisitor
def visitString(cs: CharSequence): V
Inherited from
SimpleVisitor
def visitTimestamp(instant: Instant): V
Inherited from
SimpleVisitor
def visitTrue(): V
Inherited from
SimpleVisitor
def visitUInt64(ul: Long): V
Inherited from
SimpleVisitor

Concrete fields

val f: Array[Any] => V
val readers: Array[To[_]]