Class Book
java.lang.Object
io.micronaut.coherence.data.model.Book
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MutationsBook
An entity for representing a
book.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn thisbook'sauthor.intgetPages()Returns the number of pages in thisbook.intReturns the year thisbookwas published.Returns aCalendarrepresenting the publication date of thebook.getTitle()Return thisbook's title.com.tangosol.util.UUIDgetUuid()Return thisbook's uniqueUUID.inthashCode()voidsetPages(int pages) Set the number of pages in thisbook.toString()
-
Field Details
-
uuid
The unique id of this book. -
title
The title of thebook. -
author
Theauthorof thebook. -
pages
protected int pagesThe number of pages thebookhas. -
published
Thebook's publication date.
-
-
Constructor Details
-
Book
Constructs a newBook.- Parameters:
title- the book's titlepages- the number of pages the book hasauthor- the book'sauthorpublished- the book's publication date
-
Book
-
-
Method Details
-
getUuid
public com.tangosol.util.UUID getUuid()Return thisbook's uniqueUUID.- Returns:
- this
book's uniqueUUID
-
getTitle
Return thisbook's title.- Returns:
- this
book's title
-
getAuthor
Return thisbook'sauthor.- Returns:
- this
book'sauthor
-
getPages
public int getPages()Returns the number of pages in thisbook.- Returns:
- the number of pages in this
book
-
setPages
public void setPages(int pages) Set the number of pages in thisbook.- Parameters:
pages- the new value for the page count
-
getPublicationYear
public int getPublicationYear()Returns the year thisbookwas published.- Returns:
- the year this
bookwas published
-
getPublished
Returns aCalendarrepresenting the publication date of thebook.- Returns:
- a
Calendarrepresenting the publication date of thebook
-
equals
-
hashCode
public int hashCode() -
toString
-