Package dev.enola.thing
Class ThingConverterInto
java.lang.Object
dev.enola.thing.ThingConverterInto
- All Implemented Interfaces:
ConverterInto<Thing,Thing.Builder>
ThingConverterInto converts a
Thing into an Thing.Builder.
This is useful e.g. to convert from one kind of Thing API implementation to another.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconvertInto(Thing from, Thing.Builder into) Convert from an I into an O.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
convertIntoOrThrow
-
Constructor Details
-
ThingConverterInto
public ThingConverterInto()
-
-
Method Details
-
convertInto
Description copied from interface:ConverterIntoConvert from an I into an O.- Specified by:
convertIntoin interfaceConverterInto<Thing,Thing.Builder> - Parameters:
from- the input to convertinto- the destination where to output- Returns:
- true if conversion was successful, false if this converter cannot handle it; see
ConverterIntoChain
-