Package redempt.redlib.config.conversion
Class PrimitiveConverter
java.lang.Object
redempt.redlib.config.conversion.PrimitiveConverter
A converter which can convert to and from strings, but saves values directly instead of as strings
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PrimitiveConverter
public PrimitiveConverter()
-
-
Method Details
-
create
Creates a StringConverter which saves values directly rather than as strings- Type Parameters:
T- The type to convert- Parameters:
loader- The function to convert from stringssaver- The function to convert to strings- Returns:
- The converter
-