質問編集履歴
1
ソースコードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -120,10 +120,46 @@
|
|
120
120
|
|
121
121
|
|
122
122
|
|
123
|
-
|
124
|
-
|
125
123
|
```
|
126
124
|
|
125
|
+
|
126
|
+
|
127
|
+
Schedule.java
|
128
|
+
|
129
|
+
```java
|
130
|
+
|
131
|
+
package com.example.myapplication_practice_1;
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
import java.util.Calendar;
|
136
|
+
|
137
|
+
import java.util.Date;
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
import io.realm.RealmObject;
|
142
|
+
|
143
|
+
import io.realm.annotations.PrimaryKey;
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
public class Schedule extends RealmObject {
|
148
|
+
|
149
|
+
@PrimaryKey
|
150
|
+
|
151
|
+
public long id; //各データを見分けるためのデータID
|
152
|
+
|
153
|
+
public Date date; //日付のデータ
|
154
|
+
|
155
|
+
public String TaskName; //タスク名
|
156
|
+
|
157
|
+
public String time_limit; //期限
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
```
|
162
|
+
|
127
163
|
realm_test.java
|
128
164
|
|
129
165
|
```java
|