Package dev.enola.common.convert
Class ObjectToStringWithToStringBiConverter<T>
java.lang.Object
dev.enola.common.convert.ObjectToStringWithToStringBiConverter<T>
- All Implemented Interfaces:
BiConverter<T,,String> ConverterInto<T,,Appendable> ConverterIntoAppendable<T>,ObjectClassConverter<T>,ObjectToStringBiConverter<T>
@Immutable
public class ObjectToStringWithToStringBiConverter<T>
extends Object
implements ObjectToStringBiConverter<T>
An ObjectToStringBiConverter which uses
Object.toString() for BiConverter.convertTo(Object), and which also checks the type to convert from.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable TconvertFrom(@Nullable String input) final String<X> Optional<X> convertToType(T input, Class<X> type) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.enola.common.convert.ConverterInto
convertIntoOrThrowMethods inherited from interface dev.enola.common.convert.ObjectToStringBiConverter
convertInto, convertObjectToType
-
Constructor Details
-
ObjectToStringWithToStringBiConverter
-
-
Method Details
-
convertToType
- Specified by:
convertToTypein interfaceObjectClassConverter<T>- Specified by:
convertToTypein interfaceObjectToStringBiConverter<T>- Throws:
IOException
-
convertTo
- Specified by:
convertToin interfaceBiConverter<T,String> - Throws:
ConversionException
-
convertFrom
- Specified by:
convertFromin interfaceBiConverter<T,String> - Throws:
ConversionException
-