tech.coinbub.daemon.proxy.converters.StringBooleanConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of daemon-utils Show documentation
Show all versions of daemon-utils Show documentation
Common utilities for daemon integrations
The newest version!
package tech.coinbub.daemon.proxy.converters;
import tech.coinbub.daemon.proxy.Converter;
public class StringBooleanConverter implements Converter {
@Override
public Object marshal(final Object from) {
return from.toString();
}
@Override
public Object unmarshal(final Object from) {
return Boolean.parseBoolean(from.toString());
}
}