Class PersistData.Builder<T,D>
java.lang.Object
io.github.vitalforge.persistlib.dataconversion.PersistData.Builder<T,D>
- Type Parameters:
T
- The type of the self.D
- The type of the data.
- Enclosing class:
PersistData<T,
D>
Creates a new builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the PersistData.Sets the data for the builder.Sets the self for the builder.
-
Constructor Details
-
Builder
public Builder()Creates a new builder.
-
-
Method Details
-
self
Sets the self for the builder.- Parameters:
self
- The self to set.- Returns:
- The current instance of the builder.
-
data
Sets the data for the builder.- Parameters:
data
- The data to set.- Returns:
- The current instance of the builder.
-
build
Builds the PersistData.- Returns:
- The built PersistData.
-