Skip to content

Commit

Permalink
Convert Note class
Browse files Browse the repository at this point in the history
- Menu > "Code" > "Convert Java File to Kotlin File"
- Kotlin generates and hides getters/setters.
  + Getter/setter can be customized manually.
- This case is lucky. Normally there are some errors about
  + Nullable check
  + Lambda conversions
  + other non-standard Java features
  • Loading branch information
ndukwon committed Apr 4, 2018
1 parent 9484b0a commit f61f09a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 54 deletions.
54 changes: 0 additions & 54 deletions app/src/main/java/com/udacity/notepad/data/Note.java

This file was deleted.

11 changes: 11 additions & 0 deletions app/src/main/java/com/udacity/notepad/data/Note.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.udacity.notepad.data

import java.util.Date

class Note {
var id = -1
var text: String? = null
var isPinned = false
var createdAt = Date()
var updatedAt: Date? = null
}

0 comments on commit f61f09a

Please sign in to comment.