X-Git-Url: https://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fgofetch%2Fdata%2FComment.java;h=963d6aa6d6dffe427d5bab979fc20cd1790550e7;hb=27008a8782c0ed96e07c8dc39ff0ed1f5163a9d0;hp=44c0de105eef25831286f57447261b82ee98b6ef;hpb=93e09a08a68ffd69eed42ecbf95f317b518357d7;p=gofetch.git diff --git a/src/be/nikiroo/gofetch/data/Comment.java b/src/be/nikiroo/gofetch/data/Comment.java index 44c0de1..963d6aa 100644 --- a/src/be/nikiroo/gofetch/data/Comment.java +++ b/src/be/nikiroo/gofetch/data/Comment.java @@ -9,16 +9,16 @@ public class Comment implements Iterable { private String author; private String title; private String date; - private String content; + private List lines; private List children; public Comment(String id, String author, String title, String date, - String content) { + List lines) { this.id = id; this.author = author; this.title = title; this.date = date; - this.content = content; + this.lines = lines; this.children = new ArrayList(); } @@ -61,13 +61,13 @@ public class Comment implements Iterable { /** * @return the content */ - public String getContent() { - return content; + public List getContentLines() { + return lines; } public boolean isEmpty() { - return children.isEmpty() - && ("" + author + title + content).trim().isEmpty(); + return children.isEmpty() && lines.isEmpty() + && ("" + author + title).trim().isEmpty(); } @Override