@Override public Object comment(Object... comment) { Comment complexComment = factory.createComment(); for (Object c : comment) { complexComment.getContent().add(c); } complexComment.setType(Blockstyle.DEFAULT); return complexComment; }
@Override public Object comment(String comment) { Comment simpleComment = factory.createComment(); simpleComment.getContent().add(comment); simpleComment.setType(Blockstyle.DEFAULT); return simpleComment; }
@Override public Object comment(List<Object> comment) { Comment complexComment = factory.createComment(); for (Object c : comment) { complexComment.getContent().add(c); } complexComment.setType(Blockstyle.DEFAULT); return complexComment; }
@Override public Object comment(String comment, LogStyle style) { Comment simpleComment = factory.createComment(); simpleComment.getContent().add(comment); if (style == LogStyle.HIGHLIGHT) simpleComment.setType(Blockstyle.HIGHLIGHT); else simpleComment.setType(Blockstyle.DEFAULT); return simpleComment; }
@Override public Object comment(List<Object> comment, LogStyle style) { Comment complexComment = factory.createComment(); for (Object c : comment) { complexComment.getContent().add(c); } if (style == LogStyle.HIGHLIGHT) complexComment.setType(Blockstyle.HIGHLIGHT); else complexComment.setType(Blockstyle.DEFAULT); return complexComment; }