package org.opennms.twissandra.api;

import java.util.Date;
import java.util.UUID;

public class Tweet implements Comparable<Tweet> {
	
	private final UUID id;
	private final Date postedAt;
	private final String postedBy;
	private final String body;

	public Tweet(String postedBy, String body, UUID id, Date postedAt) {
		this.postedBy = postedBy;
		this.body = body;
		this.id = id;
		this.postedAt = postedAt;
	}
	
	public UUID getId() {
		return id;
	}
	public String getPostedBy() {
		return postedBy;
	}
	public String getBody() {
		return body;
	}
	public Date getPostedAt() {
		return postedAt;
	}
	public int compareTo(Tweet o) {
		return this.postedAt.compareTo(o.postedAt);
	}
}

@@ -681,10 +681,214 @@
 At);%0A%09%7D%0A
+%09%0A%09@Override%0A%09public String toString() %7B%0A%09%09StringBuilder buf = new StringBuilder();%0A%09%09buf.append(postedBy).append(%22: %22).append(body).append(%22 (%22).append(postedAt).append(%22)%22);%0A%09%09return buf.toString();%0A%09%7D%0A
 %7D%0A

add a toString to Tweet for easier debugging