Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Realm を正しく使うには
Search
numa08
September 29, 2015
Technology
5
1.5k
Realm を正しく使うには
Android で Realm を使う際の気をつける点とかを共有@ #realm_jp
numa08
September 29, 2015
Tweet
Share
More Decks by numa08
See All by numa08
What/Why/How MVVM on iOS
numa08
3
690
facilio
numa08
0
120
Kotlin でテストを書く
numa08
0
360
Android Testing Bootcamp 4
numa08
0
480
チームの進捗をちゃんと可視化したい話
numa08
1
950
Realmを正しく使うには
numa08
2
400
新入女子社員のコードを直す簡単なお仕事 #新宿Scala座 第6回
numa08
1
220
新宿Scala座
numa08
0
1k
DroigPing
numa08
0
120
Other Decks in Technology
See All in Technology
GoogleのAIエージェント論 Authors: Julia Wiesinger, Patrick Marlow and Vladimir Vuskovic
customercloud
PRO
0
160
AWS re:Invent 2024 re:Cap Taipei (for Developer): New Launches that facilitate Developer Workflow and Continuous Innovation
dwchiang
0
170
KMP with Crashlytics
sansantech
PRO
0
240
Azureの開発で辛いところ
re3turn
0
240
技術に触れたり、顔を出そう
maruto
1
160
Reactフレームワークプロダクトを モバイルアプリにして、もっと便利に。 ユーザに価値を届けよう。/React Framework with Capacitor
rdlabo
0
130
re:Invent2024 KeynoteのAmazon Q Developer考察
yusukeshimizu
1
150
AIアプリケーション開発でAzure AI Searchを使いこなすためには
isidaitc
1
120
AWSマルチアカウント統制環境のすゝめ / 20250115 Mitsutoshi Matsuo
shift_evolve
0
120
Unsafe.BitCast のすゝめ。
nenonaninu
0
200
0→1事業こそPMは営業すべし / pmconf #落選お披露目 / PM should do sales in zero to one
roki_n_
PRO
1
1.5k
JuliaTokaiとJuliaLangJaの紹介 for NGK2025S
antimon2
1
120
Featured
See All Featured
Six Lessons from altMBA
skipperchong
27
3.6k
Making Projects Easy
brettharned
116
6k
Building Your Own Lightsaber
phodgson
104
6.2k
Writing Fast Ruby
sferik
628
61k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.5k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
3
240
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.7k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Typedesign – Prime Four
hannesfritz
40
2.5k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Fashionably flexible responsive web design (full day workshop)
malarkey
406
66k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.8k
Transcript
3FBMNΛ ਖ਼͘͠͏ʹ "OESPJEฤ !OVNB SFBMN@KQ
!OVNB IUUQOVNBIBUFCMPKQ
DPWFMMJOF --$ GFBUIFSܰշͳUXJUUFSΫϥΠΞϯτ
3FBMNΛਖ਼͘͠͏ʹ 3FBMNߴͳ%#.4Ͱ͋Δ 3FBMNଞͷ%#.4ͱൺֱͯ͠ѹతʹߴͰ͋Δɻ ͔͠͠ɺଞͷ%#.4ʹແ੍͍ҙ͕͋Δɻ εϨουؒ௨৴ɺίϯϙʔωϯτؒ௨৴ɺςετFUDʜ "OESPJEͰ3FBMNΛͬͨͷհ UXJUUFSΫϥΠΞϯτGFBUIFSͰ3FBMNΛͬͨɻ πΠʔτͷಡΈࠐΈɺදࣔؔ࿈ʹ͍ͭͯϋϚͬͨΛհɻ
ΞδΣϯμ ઃܭ w ࠓͷઃܭ w ੲͷઃܭ w ੲͷઃܭͷࣦഊ ςετ
w ςετͷ5JQT
ࠓͷઃܭ
ੲͷઃܭ
πΠʔτͷཧΦϒδΣΫτ ࠓ ੲ 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(); } }
ੲͷઃܭ ޓੑ͕ཉ͔ͬͨ͠ 3FBMNҎ֎ͷ%#.403.ͷ࠾༻ݕ౼͍ͯͨ͠ɻ ͍ͭͰΓ͑ΒΕΔΑ͏ʹɺޓੑΛҙ͍ࣝͯͨ͠ɻ
ੲͷઃܭͷμϝͳ ϝϞϦ͍͗͢ ͔ͳΓେྔͷΦϒδΣΫτΛϝϞϦ্ʹల։͢ΔͷͰɺ ͕ٻΊΒΕͨɻ 3FBMNͷϝϦοτΛ׆͔ͤͯͳ͍ ಠࣗΦϒδΣΫτͷల։ʹΑͬͯɺಈ࡞͕͘ͳͬͨɻ Ԇϩʔυ($Λར༻͠ͳ͍ͷͰɺແҙຯͳϝϞϦফඅʹܨ͕ͬͨɻ ޓੑΛࣺͯͯ3FBMNΛ͏ํࣜʹํస
εϨουؒ௨৴ ੲ ࠓ ಡΈࠐΈ όοΫάϥϯυͰ࣮ߦ ॻ͖ࠐΈ όοΫάϥϯυͰ࣮ߦ εϨουؒ௨৴ ಠࣗΦϒδΣΫτʹల։
ಡΈࠐΈ 6*εϨουͰ࣮ߦ ॻ͖ࠐΈ όοΫάϥϯυͰ࣮ߦ εϨουؒ௨৴ ࣝผࢠɺΫΤϦΛΓͱΓɻ ࣍ͷεϨουͰΫΤϦΛ࣮ߦɻ
ίϯϙʔωϯτؒ௨৴ ੲ ࠓ ίϯϙʔωϯτؒ௨৴ ಠࣗͷ1BSDFMBCMFͳΦϒδΣΫτʹ ల։ ίϯϙʔωϯτؒ௨৴ ࣝผࢠɺΫΤϦΛΓͱΓɻ ࣍ͷίϯϙʔωϯτͰΫΤϦ࣮ߦɻ
ςετͷ ઃܭ w +7.Ͱςετ͕Ͱ͖ͳ͍ w ϑΝΠϧআ࣌ͷҙࣄ߲ w 6*εϨουςετͷҙࣄ߲ εϨουؒ௨৴ɺίϯϙʔωϯτؒ௨৴ͷ੍ݶ͋ͬͯɺςετ࣮ߦҙ͕ඞཁ
ͱͳΔɻ
ςετͷ +7.্Ͱςετ͕Ͱ͖ͳ͍ +7.্ͷςετͰωΟςΟϒϥΠϒϥϦ͕ಡΈࠐΊͳ͍ͷͰɺ3FBMNΠϯελϯ εΞΫηεͰ͖ͳ͍ɻ *OTUSVNFOUBUJPO5FTUͰ͋Δඞཁ͕͋Δɻ ิɹ 3FBMN0CKFDUͷαϒΫϥεΛΠϯελϯεԽ͢Δͷɺ+7.্ͰՄೳɻ ίϯετϥΫλͷςετɺ3FBMNͷಡΈॻ͖ͷແ͍ςετͳΒେৎɻ
ςετͷ ϑΝΠϧআ࣌ͷҙࣄ߲ 3FBMNͷ%#ϑΝΠϧશͯͷίωΫγϣϯ͕DMPTF͞Ε͍ͯͳ͍ͱআͰ͖ͣɺ ྫ֎͕ඈͿɻ !"GUFSͰআΛ͢Δ߹ʹɺ࣮֬ʹDMPTF͕ݺΕΔΑ͏ʹ͢Δඞཁ͕͋Δɻ ςετʹࣦഊͯ͠DMPTF͠Εͯ!"GUFS͕ݺΕΔͱྫ֎͕ݟ͘ͳΔɻ w ςετϝιουͰUSZpOBMMZ USZXJUISFTPVSDFT
ΛͬͯDMPTF͢Δ w !"GUFSͰDMPTF͔ͯ͠ΒআΛ͢Δ
ςετͷ !6*5ISFBE5FTUͷҙ !6*5ISFBE5FTU!#FGPSF !"GUFSͱҧ͏εϨουͰ࣮ߦ͞ΕΔɻ ͦͷͨΊɺ3FBMNΠϯελϯεͳͲɺςετϝιουͰ༻ҙɺ আ͢Δඞཁ͕͋Δɻ