package com.vaguehope.onosendai.model;

public class TweetBuilder {

	private long id;
	private String username;
	private String body;
	private long unitTimeSeconds;

	public void reset () {
		this.id = 0L;
		this.username = null;
		this.body = null;
		this.unitTimeSeconds = 0L;
	}

	public TweetBuilder id (final long v) {
		this.id = v;
		return this;
	}

	public TweetBuilder username (final String v) {
		this.username = v;
		return this;
	}

	public TweetBuilder body (final String v) {
		this.body = v;
		return this;
	}

	public TweetBuilder unitTimeSeconds (final long v) {
		this.unitTimeSeconds = v;
		return this;
	}

	public Tweet build () {
		Tweet t = new Tweet(this.id, this.username, this.body, this.unitTimeSeconds);
		reset();
		return t;
	}

}

@@ -160,16 +160,57 @@
 conds;%0A%0A
+%09public TweetBuilder () %7B%0A%09%09reset();%0A%09%7D%0A%0A
 %09public 

reset from const