Created
February 24, 2014 11:21
-
-
Save novotnyr/9186666 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sk.upjs.ics.novotnyr.taskr; | |
public class Task { | |
private Long id; | |
private String name; | |
private boolean isDone; | |
public Long getId() { | |
return id; | |
} | |
public String getName() { | |
return name; | |
} | |
public boolean isDone() { | |
return isDone; | |
} | |
public void setDone(boolean isDone) { | |
this.isDone = isDone; | |
} | |
public void setId(Long id) { | |
this.id = id; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
@Override | |
public String toString() { | |
return name + " " + (isDone ? " [hotová]" : ""); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment