Getter/Setter作成

This commit is contained in:
r-ca 2023-12-14 04:24:38 +09:00
parent 0a4dbbabd9
commit 2b04432a37
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -11,5 +11,57 @@ public class DocumentDetail {
String author; String author;
String defaultBranch; String defaultBranch;
// TODO-rca: Getter, Setter // Getter
public String getId() {
return id;
}
public String getTitle() {
return title;
}
public Date getCreatedAt() {
return createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public String getAuthor() {
return author;
}
public String getDefaultBranch() {
return defaultBranch;
}
// Setter
public void setId(String id) {
this.id = id;
}
public void setTitle(String title) {
this.title = title;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public void setAuthor(String author) {
this.author = author;
}
public void setDefaultBranch(String defaultBranch) {
this.defaultBranch = defaultBranch;
}
} }