MatchFilter

open class MatchFilter<T>(val hash: (ByteArray) -> T)

Inheritors

Constructors

Link copied to clipboard
constructor(hash: (ByteArray) -> T)

Properties

Link copied to clipboard
val hash: (ByteArray) -> T
Link copied to clipboard

Functions

Link copied to clipboard
fun add(ba: ByteArray)

Add an item to the filter.

Link copied to clipboard
fun clear()

Reset the filter to empty.

Link copied to clipboard

Try to match the ba to the filter. A null ba never matches