public final class BookView extends Object implements DataSerializable
Modifier and Type | Class and Description |
---|---|
static class |
BookView.Builder
Builder class to assist in creation of a new
BookView . |
Modifier and Type | Method and Description |
---|---|
static BookView.Builder |
builder()
Returns a new
BookView.Builder for chaining. |
boolean |
equals(Object obj) |
Text |
getAuthor()
Returns the author of the book to be displayed.
|
int |
getContentVersion()
Gets the content version of this
DataSerializable . |
ImmutableList<Text> |
getPages()
Returns a list of pages that will be displayed to the client.
|
Text |
getTitle()
Returns the title of the book to be displayed.
|
int |
hashCode() |
DataContainer |
toContainer()
Serializes this object into a comprehensible
DataContainer . |
String |
toString() |
public Text getTitle()
public Text getAuthor()
public ImmutableList<Text> getPages()
public static BookView.Builder builder()
BookView.Builder
for chaining.public int getContentVersion()
DataSerializable
DataSerializable
. The version
may differ between instances of plugins and implementations such that
the DataView
from DataSerializable.toContainer()
may include different
information, or remove other information as they are no longer deemed
necessary. The version goes hand in hand with DataContentUpdater
as it is required when there exists any DataView
of this
DataSerializable
with an "older" version.getContentVersion
in interface DataSerializable
public DataContainer toContainer()
DataSerializable
DataContainer
.toContainer
in interface DataSerializable