TlvStream

case class TlvStream[T <: Tlv](records: Iterable[T], unknown: Iterable[GenericTlv])

A tlv stream is a collection of tlv records. A tlv stream is constrained to a specific tlv namespace that dictates how to parse the tlv records. That namespace is provided by a trait extending the top-level tlv trait.

Type parameters:
T

the stream namespace is a trait extending the top-level tlv trait.

Value parameters:
records

known tlv records.

unknown

unknown tlv records.

Companion:
object
Source:
Tlv.scala
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def get[R <: T : ClassTag]: Option[R]
Type parameters:
R

input type parameter, must be a subtype of the main TLV type

Returns:

the TLV record of type that matches the input type parameter if any (there can be at most one, since BOLTs specify that TLV records are supposed to be unique)

Source:
Tlv.scala

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product