Android Open Source - PomodoroTimer Tag Class






From Project

Back to project page PomodoroTimer.

License

The source code is released under:

GNU General Public License

If you think the Android project PomodoroTimer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.example.pomodorotimer;
//from   w  w w  .  j  a  v  a2s .co m
/**
 * The Class TagClass.
 * Used for operations on objects. Helps with database operations.
 * Stores information about tag.
 */
public class TagClass
{
  
  /**
   * Instantiates a new tag class.
   */
  public TagClass()
  {
    super();
  }
  
  /**
   * Instantiates a new tag class completing it's fields.
   *
   * @param id the tag's id
   * @param _tagName the tag's name
   * @param _lastUsed the tag's last used date
   */
  public TagClass(long id, String _tagName, String _lastUsed)
  {
    _id = id;
    tagName = _tagName;
    lastUsed = _lastUsed;
  }
  
  /** The tag's _id. */
  private long _id;
  
  /** The tag's name. */
  private String tagName;
  
  /** The date of tag's last use. */
  private String lastUsed;
  
  /**
   * Gets the tag's name.
   *
   * @return the tag's name
   */
  public String getTagName()
  {
    return tagName;
  }
  
  /**
   * Sets the tag's name.
   *
   * @param tagName the new tag's name
   */
  public void setTagName(String tagName)
  {
    this.tagName = tagName;
  }
  
  /**
   * Gets the date of tag's last use.
   *
   * @return the date of tag's last use
   */
  public String getLastUsed()
  {
    return lastUsed;
  }
  
  /**
   * Sets the date of tag's last use.
   *
   * @param lastUsed the new date of tag's last use
   */
  public void setLastUsed(String lastUsed)
  {
    this.lastUsed = lastUsed;
  }

  /**
   * Gets the tag's id.
   *
   * @return the tag's id
   */
  public long getID()
  {
    return _id;
  }

  /**
   * Sets the tag's id.
   *
   * @param _id the tag's new id
   */
  public void setID(int _id)
  {
    this._id = _id;
  }
  
  /* (non-Javadoc)
   * @see java.lang.Object#toString()
   */
  public String toString()
  {
    return tagName;
  }
}




Java Source Code List

com.example.pomodorotimer.About.java
com.example.pomodorotimer.DropboxLink.java
com.example.pomodorotimer.MainActivity.java
com.example.pomodorotimer.PomodoroClass.java
com.example.pomodorotimer.PomodoroContentProvider.java
com.example.pomodorotimer.PomodoroDetails.java
com.example.pomodorotimer.PomodoroEdit.java
com.example.pomodorotimer.PomodoroList.java
com.example.pomodorotimer.PomodoroTimerDBContract.java
com.example.pomodorotimer.PomodoroTimerDBHelper.java
com.example.pomodorotimer.PomodorosTagClass.java
com.example.pomodorotimer.SettingsActivity.java
com.example.pomodorotimer.TagClass.java
com.example.pomodorotimer.TagDetails.java
com.example.pomodorotimer.TagEdit.java
com.example.pomodorotimer.TagList.java