11package net .theevilreaper .aves .file ;
22
33import com .google .gson .reflect .TypeToken ;
4- import org .jetbrains .annotations .NotNull ;
54import org .slf4j .Logger ;
65import org .slf4j .LoggerFactory ;
76
1110import java .util .Optional ;
1211
1312/**
14- * The class represents the base logic to load or save json files.
13+ * The class represents the base logic to load or save JSON files.
14+ *
1515 * @author theEvilReaper
1616 * @version 1.0.0
1717 * @since 1.9.0
@@ -24,19 +24,21 @@ public interface ModernFileHandler {
2424
2525 /**
2626 * Saves a given object into a file.
27- * @param path The path where the file is located
28- * @param object The object to save
27+ *
28+ * @param path The path where the file is located
29+ * @param object The object to save
2930 * @param typeToken the type token to serialize the object
30- * @param <T> A generic type for the object value
31+ * @param <T> A generic type for the object value
3132 */
32- <T > void save (@ NotNull Path path , @ NotNull T object , @ NotNull TypeToken <T > typeToken );
33+ <T > void save (Path path , T object , TypeToken <T > typeToken );
3334
3435 /**
3536 * Load a given file and parse to the give class.
36- * @param path is the where the file is located
37+ *
38+ * @param path is the where the file is located
3739 * @param typeToken the type token to deserialize the object
38- * @param <T> is generic type for the object value
40+ * @param <T> is generic type for the object value
3941 * @return a {@link Optional} with the object instance
4042 */
41- <T > Optional <T > load (@ NotNull Path path , @ NotNull TypeToken <T > typeToken );
43+ <T > Optional <T > load (Path path , TypeToken <T > typeToken );
4244}
0 commit comments