java.lang.Object
org.meeuw.configuration.spi.AbstractToString<N>
- All Implemented Interfaces:
Comparable<ToStringProvider<?>>,ToStringProvider<N>
- Direct Known Subclasses:
BooleanToString,NumberToString
-
Field Details
-
type
-
-
Constructor Details
-
AbstractToString
-
-
Method Details
-
weight
public int weight()- Specified by:
weightin interfaceToStringProvider<N>
-
toString
Description copied from interface:ToStringProviderFor given value, check if the type is supported, and then convert it to a String.- Specified by:
toStringin interfaceToStringProvider<N>
-
valueOf
-
fromString
Description copied from interface:ToStringProviderGiven a desired type, and a string value, convert it to the supported type. Normally, the given type must be some superclass ofC, but it also might be a primitive type.- Specified by:
fromStringin interfaceToStringProvider<N>
-
toWrapper
-