Package net.frozenspace.frostlib.data
Class Loader
- java.lang.Object
-
- net.frozenspace.frostlib.data.Loader
-
- Direct Known Subclasses:
CommandLoader,ConfigurationLoader
public abstract class Loader extends java.lang.ObjectThis class is used for defining if a class is used for loading some value
-
-
Constructor Summary
Constructors Constructor Description Loader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <T> Tload(@NotNull java.lang.Class<T> clazz)Create a new instance of the class and classload(Object)using the this new class instance as parameterabstract <T> Tload(T obj)
-
-
-
Method Detail
-
load
@NotNull public <T> T load(@NotNull @NotNull java.lang.Class<T> clazz)Create a new instance of the class and classload(Object)using the this new class instance as parameter- Type Parameters:
T- The type of this class- Parameters:
clazz- The class to load- Returns:
- The object loaded with
load(Object)
-
load
@NotNull public abstract <T> T load(@NotNull T obj)
-
-