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>

public static final class PersistData.Builder<T,D> extends Object
Creates a new builder.
  • Constructor Details

    • Builder

      public Builder()
      Creates a new builder.
  • Method Details

    • self

      public PersistData.Builder<T,D> self(T self)
      Sets the self for the builder.
      Parameters:
      self - The self to set.
      Returns:
      The current instance of the builder.
    • data

      public PersistData.Builder<T,D> data(D data)
      Sets the data for the builder.
      Parameters:
      data - The data to set.
      Returns:
      The current instance of the builder.
    • build

      public PersistData<T,D> build()
      Builds the PersistData.
      Returns:
      The built PersistData.