searchresult.java

来自「图书馆检索系统」· Java 代码 · 共 71 行

JAVA
71
字号
package library;


/**
* Class <b>SearchResult</b> is a lightweight object for holding search or browse
* title information
*
* @author dms
* @version 1.0
*/
public class SearchResult {
	
	private String msTitle;
	private String msAuthor;
	private String msCallNumber;
	private String msEdition;
	private int mnYear;
	
	/**
	* SearchResult constructor
	*
	* 
	* @param sTitle the book title
	* @param sAuthor  the author(s)
	* @param sCallNumber the callnumber
	* @param sEdition  the edition
	* @param year the publication year
	*
	*/
	public SearchResult(String sTitle, String sAuthor, String sCallNumber, String ed, int nYear) {
	    
	    msTitle = sTitle;
	    msAuthor = sAuthor;
	    msCallNumber = sCallNumber;
	    msEdition = ed;
	    mnYear = nYear;

	}
	
	/**
	* Accessor for year
	* @return double containing year
	*/
	public int getYear() {return mnYear;}


	/**
	* Accessor for the name of the title
	* @return String containing name of title
	*/
	public String getName() {return msTitle;}

	/**
	* Accessor for callnumber
	* @return String containing callnumber
	*/
	public String getCallNumber() {return msCallNumber;}

	/**
	* Accessor for edition
	* @return String containing edition
	*/
	public String getEdition() {return msEdition;}

	/**
	* Accessor for author
	* @return String containing author
	*/
	public String getAuthors() {return msAuthor;}
        
}

⌨️ 快捷键说明

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