KProperty༻ͷ֦ுؔΛఆٛ
fun RealmQuery.equalTo(property : KProperty,
value: Int) : RealmQuery {
return this.equalTo(property.name, value)
}
fun RealmQuery.equalTo(property : KProperty,
value: String) : RealmQuery {
return this.equalTo(property.name, value)
}
val persons = realm.where(Person::class).equalTo(Person::age, 25)
val persons = realm.where(Person::class).equalTo(Person::age, "25") // Τϥʔ
[email protected]