From: David ‘Bombe’ Roden Date: Fri, 20 Feb 2015 05:35:45 +0000 (+0100) Subject: Remove all those useless comments X-Git-Tag: v2~198 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5b5709eed3100f733837e588309c302b57dbaf37;p=rhynodge.git Remove all those useless comments --- diff --git a/src/main/java/net/pterodactylus/rhynodge/states/ComicState.java b/src/main/java/net/pterodactylus/rhynodge/states/ComicState.java index ffc38b5..1f600a3 100644 --- a/src/main/java/net/pterodactylus/rhynodge/states/ComicState.java +++ b/src/main/java/net/pterodactylus/rhynodge/states/ComicState.java @@ -33,44 +33,23 @@ import com.google.common.collect.Lists; */ public class ComicState extends AbstractState implements Iterable { - /** The comics in this state. */ @JsonProperty private final List comics = Lists.newArrayList(); - /** - * Returns the list of comics contained in this state. - * - * @return The list of comics in this state - */ public List comics() { return comics; } - /** - * Adds the given comic to this state. - * - * @param comic - * The comic to add - * @return This comic state - */ public ComicState add(Comic comic) { comics.add(comic); return this; } - // - // ITERABLE METHODS - // - @Override public Iterator iterator() { return comics.iterator(); } - // - // OBJECT METHODS - // - @Override public String toString() { return String.format("ComicState[comics=%s]", comics()); @@ -83,67 +62,34 @@ public class ComicState extends AbstractState implements Iterable { */ public static class Comic implements Iterable { - /** The title of the comic. */ @JsonProperty private final String title; - /** The strips of the comic. */ @JsonProperty private final List strips = Lists.newArrayList(); - /** - * Creates a new comic with the given title. - * - * @param title - * The title of the comic - */ public Comic(@JsonProperty("title") String title) { this.title = title; } - /** - * Returns the title of this comic. - * - * @return The title of this comic - */ public String title() { return title; } - /** - * Returns the strips of this comic. - * - * @return The strips of this comic - */ public List strips() { return strips; } - /** - * Adds a strip to this comic. - * - * @param strip - * The strip to add - * @return This comic - */ public Comic add(Strip strip) { strips.add(strip); return this; } - // - // ITERABLE METHODS - // - @Override public Iterator iterator() { return strips.iterator(); } - // - // OBJECT METHODS - // - @Override public int hashCode() { return title.hashCode() ^ strips().hashCode(); @@ -172,49 +118,25 @@ public class ComicState extends AbstractState implements Iterable { */ public static class Strip { - /** The URL of the image. */ @JsonProperty private final String imageUrl; - /** The comment of the image. */ @JsonProperty private final String comment; - /** - * Creates a new strip. - * - * @param imageUrl - * The URL of the image - * @param comment - * The comment of the image - */ public Strip(@JsonProperty("imageUrl") String imageUrl, @JsonProperty("comment") String comment) { this.imageUrl = imageUrl; this.comment = comment; } - /** - * Returns the URL of the image. - * - * @return The URL of the image - */ public String imageUrl() { return imageUrl; } - /** - * Returns the comment of the image. - * - * @return The comment of the image - */ public String comment() { return comment; } - // - // OBJECT METHODS - // - @Override public int hashCode() { return imageUrl().hashCode() ^ comment().hashCode();