public class BookViewDataBuilder extends AbstractDataBuilder<BookView> implements TypeSerializer<BookView>
| Constructor and Description |
|---|
BookViewDataBuilder()
Constructs a new
BookViewDataBuilder to build
BookViews. |
| Modifier and Type | Method and Description |
|---|---|
protected Optional<BookView> |
buildContent(DataView container)
Builds the currently
AbstractDataBuilder.supportedVersion variant of the intended
DataSerializable, such that all content upgrades have already
been handled by AbstractDataBuilder.build(DataView). |
BookView |
deserialize(TypeToken<?> type,
ConfigurationNode value) |
void |
serialize(TypeToken<?> type,
BookView bookView,
ConfigurationNode value) |
buildclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, resetpublic BookViewDataBuilder()
BookViewDataBuilder to build
BookViews.protected Optional<BookView> buildContent(DataView container) throws InvalidDataException
AbstractDataBuilderAbstractDataBuilder.supportedVersion variant of the intended
DataSerializable, such that all content upgrades have already
been handled by AbstractDataBuilder.build(DataView). This otherwise follows the
same contract as DataBuilder.build(DataView).buildContent in class AbstractDataBuilder<BookView>container - The container with data to build fromInvalidDataException - If there's issues of invalid data formats
or invalid datapublic BookView deserialize(TypeToken<?> type, ConfigurationNode value) throws ObjectMappingException
deserialize in interface TypeSerializer<BookView>ObjectMappingExceptionpublic void serialize(TypeToken<?> type, BookView bookView, ConfigurationNode value) throws ObjectMappingException
serialize in interface TypeSerializer<BookView>ObjectMappingException