package kr.co.swh.lecture.opensource.project.sparkjava;

public class WordCloud {
	private String text;
	private Integer size;
	
	public WordCloud(String text, Integer size) {
		this.text = text;
		this.size = size;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}
	
	@Override
	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		if(obj instanceof WordCloud) {
			WordCloud u = (WordCloud)obj;
			if(this.text.equals(u.getText())) return true;
		}
		return false;
	}
}
