📄 searchresult.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -