add files
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
package org.FileExamples.ParsingJson;
|
||||
|
||||
|
||||
public class Genre
|
||||
{
|
||||
private Long id;
|
||||
private String name;
|
||||
|
||||
public Genre(Long id, String name) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Genre() {
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return id + ". " + name;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user