dodanie funkcji toString
This commit is contained in:
parent
4d6e51813f
commit
041a65bcc3
@ -1,5 +1,6 @@
|
|||||||
package com.example.notatkon.database;
|
package com.example.notatkon.database;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.room.ColumnInfo;
|
import androidx.room.ColumnInfo;
|
||||||
import androidx.room.Entity;
|
import androidx.room.Entity;
|
||||||
import androidx.room.PrimaryKey;
|
import androidx.room.PrimaryKey;
|
||||||
@ -70,4 +71,10 @@ public class NoteEntity {
|
|||||||
public void setContent(String content) {
|
public void setContent(String content) {
|
||||||
this.content = content;
|
this.content = content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return title + " : " + dateTime;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user