aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/Message.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-02-26 17:04:42 +0300
committerGravatar Vitaly Takmazov2016-02-26 17:04:42 +0300
commitd23e7fff4da9bbfd7ee85ff34c78de631d55c4a5 (patch)
tree3ab09d28cd3bea60369f39fd89831e2f046714ba /src/main/java/com/juick/Message.java
parentc84041327cbac8d67fd75ff4c223cf43f7fc73e7 (diff)
Message is Comparable
Diffstat (limited to 'src/main/java/com/juick/Message.java')
-rw-r--r--src/main/java/com/juick/Message.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/juick/Message.java b/src/main/java/com/juick/Message.java
index 10f7c698..263a247d 100644
--- a/src/main/java/com/juick/Message.java
+++ b/src/main/java/com/juick/Message.java
@@ -23,7 +23,7 @@ import java.util.*;
*
* @author Ugnich Anton
*/
-public class Message {
+public class Message implements Comparable {
private int MID = 0;
@@ -95,6 +95,7 @@ public class Message {
return (this.getMID() == jmsg.getMID() && this.getRID() == jmsg.getRID());
}
+ @Override
public int compareTo(Object obj) throws ClassCastException {
if (!(obj instanceof Message)) {
throw new ClassCastException();