dodanie funkcji toString

This commit is contained in:
Naiki00 2021-02-15 21:30:15 +01:00
parent 4d6e51813f
commit 041a65bcc3

View File

@ -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;
}
} }