Code example for GregorianCalendar

Methods: getgetTimeaddequals

0
	 * データベースに含まれる情報を1つの文字列として出力 
	 *  
	 * @return 文字列 
	 */ 
	public String toString() {
		if (mStart.get(Calendar.HOUR_OF_DAY) == 0
				&& mStart.get(Calendar.MINUTE) == 0) {
			mStart.add(Calendar.DAY_OF_MONTH, 1);
			if (mStart.equals(mEnd)) {
				return getTitle() + "\n" + getStartDateString() + "\n" 
						+ getWhere() + "\n" + getContent(); 
			} 
		} 
 
		return getTitle() + "\n" + getStartDateString() + " " 
				+ getStartTimeString() + "\n" + getEndDateString() + " " 
				+ getEndTimeString() + "\n" + getWhere() + "\n" + getContent(); 
	} 
 
	/* 
	 * setter and getter 
	 */ 
 
	public long getId() { 
		return mId;
	} 
 
	public void setId(long mId) {
		this.mId = mId;
	} 
 
	public String getTitle() {
		return mTitle;
	} 
 
	public void setTitle(String mTitle) {
		this.mTitle = mTitle;
	} 
 
	public String getWhere() {
		return mWhere;
	} 
 
	public void setWhere(String mWhere) {
		this.mWhere = mWhere;
	} 
 
	public String getContent() {
		return mContent;
	} 
 
	public void setContent(String mContent) {
		this.mContent = mContent;
	} 
 
	public GregorianCalendar getStart() {
		return mStart;
	} 
 
	public String getStartString() {
		return toDBDateString(mStart);
	} 
 
	public String getStartDateString() {
		return dateFormat.format(mStart.getTime());
	} 
 
	public String getStartTimeString() {
		return timeFormat.format(mStart.getTime());
	} 
 
	public void setStart(GregorianCalendar mStart) {
		this.mStart = mStart;
	} 
Experience pair programming with AI  Get Codota for Java