trait
CodecForMany[T, M <: MediaType, R] extends Decode[Seq[R], T]
Abstract Value Members
-
abstract
def
decode(s: Seq[R]): DecodeResult[T]
-
abstract
def
encode(t: T): Seq[R]
-
abstract
def
meta: CodecMeta[M, R]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
map[TT](f: (T) ⇒ TT)(g: (TT) ⇒ T): CodecForMany[TT, M, R]
-
def
mapDecode[TT](f: (T) ⇒ DecodeResult[TT])(g: (TT) ⇒ T): CodecForMany[TT, M, R]
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
safeDecode(f: Seq[R]): DecodeResult[T]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from Decode[Seq[R], T]
A codec which can encode to multiple (0..n) raw values / decode from multiple raw values. An multiple raw value specifies that the raw values should be included in the output multiple times. Depending on the codec, decoding from a multiple value might yield DecodeResult.Missing or DecodeResult.Multiple.
Should be used for inputs/outputs which allow multiple values.