|
|
|
@ -39,13 +39,13 @@ class FilterManager { |
|
|
|
realmResults.where().greaterThan("test", 5).findAll() |
|
|
|
realmResults.where().greaterThan("test", 5).findAll() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// |
|
|
|
fun MutableList<Filterable>.filter(filter: FilterComponent) : List<Filterable> { |
|
|
|
//fun MutableList<Filterable>.filter(filter: FilterComponent) : List<Filterable> { |
|
|
|
|
|
|
|
// |
|
|
|
return this.filter { f -> |
|
|
|
// return this.filter { f -> |
|
|
|
return@filter true |
|
|
|
// return@filter true |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
//} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// doesnt compile: Class "FilterableRealmObject" must contain at least 1 persistable field. |
|
|
|
// doesnt compile: Class "FilterableRealmObject" must contain at least 1 persistable field. |
|
|
|
|