Skip to content

Commit ff8f075

Browse files
committed
convert Note model to kotlin
1 parent 8227d5c commit ff8f075

File tree

2 files changed

+8
-52
lines changed
  • app/src/main
    • java/com/simplemobiletools/notes/models
    • kotlin/com/simplemobiletools/notes/models

2 files changed

+8
-52
lines changed

app/src/main/java/com/simplemobiletools/notes/models/Note.java

Lines changed: 0 additions & 52 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.simplemobiletools.notes.models
2+
3+
class Note(var id: Int, var title: String, var value: String) {
4+
5+
override fun equals(o: Any?) = o != null && this.toString() == o.toString()
6+
7+
override fun toString() = "Note {id=$id, title=$title, value=$value}"
8+
}

0 commit comments

Comments
 (0)