corda / net.corda.client.jfx.utils / javafx.collections.ObservableList / filter

# filter

`fun <A> ObservableList<out A>.filter(predicate: ObservableValue<(A) -> Boolean>): ObservableList<A>`

enum class FilterCriterion { HEIGHT, NAME } val filterCriterion: ObservableValue = (..) val people: ObservableList = (..) fun filterFunction(filterCriterion: FilterCriterion): (Person) -> Boolean { .. }

val filteredPeople: ObservableList = people.filter(filterCriterion.map(filterFunction))