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
-
pages
protected int pagesThe number of pages thebookhas. -
published
Thebook's publication date.
-
-
Constructor Details
-
Book
-
Book
-
-
Method Details
-
getUuid
public com.tangosol.util.UUID getUuid()Return thisbook's uniqueUUID.- Returns:
- this
book's uniqueUUID
-
getTitle
-
getAuthor
-
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
-
equals
-
hashCode
-
toString
-