package jackall.moncalc.db import io.realm.Realm import io.realm.RealmObject /** * Created by matsumoto_k on 2017/11/02. */ abstract class RealmHelper<T : RealmObject> : RealmConfig() { abstract fun insert(realmObject: T) abstract fun insert(realmObject: List<T>) fun getRealm(): Realm { return Realm.getInstance(config) } }