Class NBTypeConverter
java.lang.Object
io.nosqlbench.nb.api.config.standard.NBTypeConverter
Shenanigans in the java type system, particularly those around boxing,
generics, type-erasure and primitive conversions have brought us here
in our attempt to simplify things.
In the future, when Java has fewer special cases in the type system,
this class can be removed.
General purpose strategies for conversion
can be injected into the
do_convert(Object, Class) and
canConvert(Object, Class)
methods.-
Field Summary
FieldsModifier and TypeFieldDescriptionThe core types should have full set closure on conversions are not narrowing -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CORE_TYPES
-
-
Constructor Details
-
NBTypeConverter
public NBTypeConverter()
-
-
Method Details
-
canConvert
-
tryConvert
-
convertOr
-
convert
-