Package com.toxicrain.rainengine.core
Class BaseInstanceable<T extends BaseInstanceable<T>>
java.lang.Object
com.toxicrain.rainengine.core.BaseInstanceable<T>
- Type Parameters:
T
- The subclass type.
- Direct Known Subclasses:
GameInfoParser
,KeyInfoParser
,MapInfoParser
,PaletteInfoParser
,SettingsInfoParser
Fully automated base class to provide singleton support to subclasses.
No need to declare an instance field in the subclass.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends BaseInstanceable<T>>
TgetInstance
(Class<T> clazz)
-
Constructor Details
-
BaseInstanceable
public BaseInstanceable()
-
-
Method Details
-
getInstance
-