Source code

    001/*
    002# Licensed Materials - Property of IBM
    003# Copyright IBM Corp. 2015
    004 */
    005package twitter;
    006
    007import java.io.Serializable;
    008
    009@SuppressWarnings("serial")
    010public class HashTagCount implements Serializable {
    011    private String hashTag;
    012    private Integer count;
    013
    014    public HashTagCount(String hashTag, Integer count) {
    015        this.hashTag = hashTag;
    016        this.count = count;
    017    }
    018
    019    /**
    020     * @return the hashTag
    021     */
    022    public String getHashTag() {
    023        return hashTag;
    024    }
    025
    026    /**
    027     * @param hashTag
    028     *            the hashTag to set
    029     */
    030    public void setHashTag(String hashTag) {
    031        this.hashTag = hashTag;
    032    }
    033
    034    /**
    035     * @return the count
    036     */
    037    public Integer getCount() {
    038        return count;
    039    }
    040
    041    /**
    042     * @param count
    043     *            the count to set
    044     */
    045    public void setCount(Integer count) {
    046        this.count = count;
    047    }
    048
    049    public String toString() {
    050        return "{" + hashTag + ": " + Integer.toString(count) + "}";
    051    }
    052
    053}