public class BookViewDataBuilder extends AbstractDataBuilder<BookView> implements TypeSerializer<BookView>
Constructor and Description |
---|
BookViewDataBuilder()
Constructs a new
BookViewDataBuilder to build
BookView s. |
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) |
build
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
from, reset
public BookViewDataBuilder()
BookViewDataBuilder
to build
BookView
s.protected Optional<BookView> buildContent(DataView container) throws InvalidDataException
AbstractDataBuilder
AbstractDataBuilder.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>
ObjectMappingException
public void serialize(TypeToken<?> type, BookView bookView, ConfigurationNode value) throws ObjectMappingException
serialize
in interface TypeSerializer<BookView>
ObjectMappingException