Package fileLogic

Class Saver<T extends Collection<E>,E>

java.lang.Object
fileLogic.Saver<T,E>

public class Saver<T extends Collection<E>,E> extends Object
Abstract saver class. (Under construction)
  • Constructor Details

    • Saver

      public Saver(Class<E> eClass)
      Initializer of fileLogic.Saver class.
      Parameters:
      eClass - Class of E. Should be provided due to Java's generic types restriction.
  • Method Details

    • saveCollection

      public void saveCollection(T collection, String envKey)
      Saves provided collection into file by environment key.
      Parameters:
      collection - Current collection to save
      envKey - Environment key to filepath