Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Realm を正しく使うには

numa08
September 29, 2015

Realm を正しく使うには

Android で Realm を使う際の気をつける点とかを共有@ #realm_jp

numa08

September 29, 2015
Tweet

More Decks by numa08

Other Decks in Technology

Transcript

  1. πΠʔτͷ؅ཧΦϒδΣΫτ  ࠓ ੲ class Tweet extends RealmObject { String

    text; Date createAt; String userName; public Tweet(){} public Tweet(String text, Date createAt, String userName) { this.text = text; this.createAt = createAt; this.userName = userName; } } class Tweet implements Content { String text; Date createAt; String userName; // RealmTweet extends RealmObject public Tweet(RealmTweet obj){ this.text = obj.getText(); this.createAt = obj.getCreateAt(); this.userName = obj.getUserName(); } }
  2. εϨουؒ௨৴  ੲ ࠓ ಡΈࠐΈ όοΫάϥ΢ϯυͰ࣮ߦ ॻ͖ࠐΈ όοΫάϥ΢ϯυͰ࣮ߦ εϨουؒ௨৴ ಠࣗΦϒδΣΫτʹల։

    ಡΈࠐΈ 6*εϨουͰ࣮ߦ ॻ͖ࠐΈ όοΫάϥ΢ϯυͰ࣮ߦ εϨουؒ௨৴ ࣝผࢠɺΫΤϦΛ΍ΓͱΓɻ ࣍ͷεϨουͰΫΤϦΛ࣮ߦɻ