|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthu.bme.mit.books.model.Book
public class Book
A class for storing books. The class stores for each book its title, author, the number of its pages and whether it has been read or not.
Constructor Summary | |
---|---|
Book()
|
Method Summary | |
---|---|
java.lang.String |
getAuthor()
Gets the author. |
int |
getPageNum()
Gets the page num. |
java.lang.String |
getTitle()
|
boolean |
isRead()
Checks if is read. |
void |
setAuthor(java.lang.String author)
Sets the author. |
void |
setPageNum(int pageNum)
Sets the page num. |
void |
setRead(boolean read)
Sets the read. |
void |
setTitle(java.lang.String title)
Sets the title. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Book()
Method Detail |
---|
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the new titlepublic java.lang.String getAuthor()
public void setAuthor(java.lang.String author)
author
- the new authorpublic int getPageNum()
public void setPageNum(int pageNum)
pageNum
- the new page numpublic boolean isRead()
public void setRead(boolean read)
read
- the new readpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |