Compare commits
No commits in common. "2c7deaa9ae9240a77042454afafcb829251fe321" and "f0b79f0db0c6e089f64748412da60e20c122c306" have entirely different histories.
2c7deaa9ae
...
f0b79f0db0
@ -1,5 +0,0 @@
|
||||
package ru.kamask.pet.todo.model;
|
||||
|
||||
public interface Identifiable {
|
||||
int getId();
|
||||
}
|
||||
@ -1,6 +1,6 @@
|
||||
package ru.kamask.pet.todo.model;
|
||||
|
||||
public abstract class Task implements Identifiable{
|
||||
public abstract class Task {
|
||||
private static int nextId = 1;
|
||||
|
||||
protected int id;
|
||||
@ -11,13 +11,8 @@ public abstract class Task implements Identifiable{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public int id() {
|
||||
return getId();
|
||||
return id;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user