Class DataStorageSystemCreator

java.lang.Object
com.mg105.use_cases.set_up.data_system_creator.DataStorageSystemCreator

public class DataStorageSystemCreator extends Object
This is a class that uses other class to create the data persistence or data storage system of this game. This class uses a facade and builder like pattern
  • Constructor Details

    • DataStorageSystemCreator

      public DataStorageSystemCreator(@NotNull @NotNull CreateDataStorage[] builders)
      Creates a new instance of DataStorageSystemCreator
      Parameters:
      builders - a group of objects that help build certain parts of the data storage system
  • Method Details

    • create

      public void create()
      Create a new data storage.