← Back to Stormify Documentation

InputParser

fun interface InputParser

Transforms user filter input before it reaches the database — e.g. locale-aware number/date parsing. Resolution chain: Facet.inputParser → PagedList.inputParser → onl.ycode.stormify.Stormify.inputParser → identity.

Functions

Link copied to clipboard
abstract operator fun invoke(input: String, type: Facet.Type): String

Returns input, the filter text of a facet of type, as the database should compare it.