thread.java

来自「如题ServletJSP.rar 为网络收集的JSP网站源文件」· Java 代码 · 共 79 行

JAVA
79
字号
/*
 * XP Forum
 *
 * Copyright (c) 2002-2003 RedSoft Group.  All rights reserved.
 *
 */
package org.redsoft.forum.search;

/**
 * Value object of thread for display purpose in search module
 *
 * @author cinc
 * @version $Id: Thread.java,v 1.1.1.1 2003/07/08 08:25:16 cinc Exp $
 *
 */
public class Thread{
    // The thread's title
    private String title;

	// Content of the thread
	private String content;

	// Author of the thread
	private String author;

    // Time when this thread was posted
	private String timeStamp;

    // catetory of the thread
    private String category;

    // category id of the thread
    private String categoryID;

    /**
     * the topmost thread id
     * it is either the thread's id if the thread has no parent
     *   or the thread parent's id
     */
    private String parentID;

	public Thread( final String title,
	               final String content,
        	       final String author,
	    	       final String timeStamp,
                   final String category,
                   final String categoryID,
                   final String parentID){
        this.title = title;
        this.content = content;
        this.author = author;
        this.timeStamp = timeStamp;
        this.category = category;
        this.categoryID = categoryID;
        this.parentID = parentID;
	}
	public String getTitle(){
		return this.title;
	}
    public String getContent(){
        return this.content;
    }
    public String getAuthor(){
        return this.author;
    }
    public String getTimeStamp(){
        return timeStamp;
    }
    public String getCategory(){
        return category;
    }
    public String getCategoryID(){
        return categoryID;
    }
    public String getParentID(){
        return parentID;
    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?