Make entities' fields public

This commit is contained in:
inorichi 2015-09-25 19:33:02 +02:00
parent 393caaa549
commit 207aca60b2

View file

@ -16,139 +16,68 @@ public class Manga {
@Nullable @Nullable
@StorIOSQLiteColumn(name = MangasTable.COLUMN_ID, key = true) @StorIOSQLiteColumn(name = MangasTable.COLUMN_ID, key = true)
Long id; public Long id;
@NonNull @NonNull
@StorIOSQLiteColumn(name = MangasTable.COLUMN_SOURCE) @StorIOSQLiteColumn(name = MangasTable.COLUMN_SOURCE)
int source; public int source;
@NonNull @NonNull
@StorIOSQLiteColumn(name = MangasTable.COLUMN_URL) @StorIOSQLiteColumn(name = MangasTable.COLUMN_URL)
String url; public String url;
@NonNull @NonNull
@StorIOSQLiteColumn(name = MangasTable.COLUMN_ARTIST) @StorIOSQLiteColumn(name = MangasTable.COLUMN_ARTIST)
String artist; public String artist;
@NonNull @NonNull
@StorIOSQLiteColumn(name = MangasTable.COLUMN_AUTHOR) @StorIOSQLiteColumn(name = MangasTable.COLUMN_AUTHOR)
String author; public String author;
@NonNull @NonNull
@StorIOSQLiteColumn(name = MangasTable.COLUMN_DESCRIPTION) @StorIOSQLiteColumn(name = MangasTable.COLUMN_DESCRIPTION)
String description; public String description;
@NonNull @NonNull
@StorIOSQLiteColumn(name = MangasTable.COLUMN_GENRE) @StorIOSQLiteColumn(name = MangasTable.COLUMN_GENRE)
String genre; public String genre;
@NonNull @NonNull
@StorIOSQLiteColumn(name = MangasTable.COLUMN_TITLE) @StorIOSQLiteColumn(name = MangasTable.COLUMN_TITLE)
String title; public String title;
@NonNull @NonNull
@StorIOSQLiteColumn(name = MangasTable.COLUMN_STATUS) @StorIOSQLiteColumn(name = MangasTable.COLUMN_STATUS)
String status; public String status;
@NonNull @NonNull
@StorIOSQLiteColumn(name = MangasTable.COLUMN_THUMBNAIL_URL) @StorIOSQLiteColumn(name = MangasTable.COLUMN_THUMBNAIL_URL)
String thumbnail_url; public String thumbnail_url;
@NonNull @NonNull
@StorIOSQLiteColumn(name = MangasTable.COLUMN_RANK) @StorIOSQLiteColumn(name = MangasTable.COLUMN_RANK)
int rank; public int rank;
@NonNull @NonNull
@StorIOSQLiteColumn(name = MangasTable.COLUMN_LAST_UPDATE) @StorIOSQLiteColumn(name = MangasTable.COLUMN_LAST_UPDATE)
long last_update; public long last_update;
@NonNull @NonNull
@StorIOSQLiteColumn(name = MangasTable.COLUMN_INITIALIZED) @StorIOSQLiteColumn(name = MangasTable.COLUMN_INITIALIZED)
boolean initialized; public boolean initialized;
@NonNull @NonNull
@StorIOSQLiteColumn(name = MangasTable.COLUMN_VIEWER) @StorIOSQLiteColumn(name = MangasTable.COLUMN_VIEWER)
int viewer; public int viewer;
@NonNull @NonNull
@StorIOSQLiteColumn(name = MangasTable.COLUMN_CHAPTER_ORDER) @StorIOSQLiteColumn(name = MangasTable.COLUMN_CHAPTER_ORDER)
int chapter_order; public int chapter_order;
Manga() {} Manga() {}
@Nullable public Manga(String title) {
public Long id() { this.title = title;
return id;
}
@NonNull
public int source() {
return source;
}
@NonNull
public String url() {
return url;
}
@NonNull
public String artist() {
return artist;
}
@NonNull
public String author() {
return author;
}
@NonNull
public String description() {
return description;
}
@NonNull
public String genre() {
return genre;
}
@NonNull
public String title() {
return title;
}
@NonNull
public String status() {
return status;
}
@NonNull
public String thumbnail_url() {
return thumbnail_url;
}
@NonNull
public int rank() {
return rank;
}
@NonNull
public long last_update() {
return last_update;
}
@NonNull
public boolean nitialized() {
return initialized;
}
@NonNull
public int viewer() {
return viewer;
}
@NonNull
public int chapter_order() {
return chapter_order;
} }
@Override @Override