/*
- * Sone - Reply.java - Copyright © 2011 David Roden
+ * Sone - Reply.java - Copyright © 2011–2012 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
import java.util.Comparator;
import java.util.UUID;
-import net.pterodactylus.util.filter.Filter;
+import net.pterodactylus.util.collection.filter.Filter;
/**
* Abstract base class for all replies.
/** The text of the reply. */
private volatile String text;
+ /** Whether the reply is known. */
+ private volatile boolean known;
+
/**
* Creates a new reply with the given ID.
*
return (T) this;
}
+ /**
+ * Returns whether this reply is known.
+ *
+ * @return {@code true} if this reply is known, {@code false} otherwise
+ */
+ public boolean isKnown() {
+ return known;
+ }
+
+ /**
+ * Sets whether this reply is known.
+ *
+ * @param known
+ * {@code true} if this reply is known, {@code false} otherwise
+ * @return This reply
+ */
+ @SuppressWarnings("unchecked")
+ public T setKnown(boolean known) {
+ this.known = known;
+ return (T) this;
+ }
+
//
// OBJECT METHODS
//