io.vertx.up.uca.serialization.StringSaber Maven / Gradle / Ivy
package io.vertx.up.uca.serialization;
import io.vertx.up.eon.Strings;
import io.vertx.up.fn.Fn;
/**
* String
*/
public class StringSaber extends BaseSaber {
@Override
public Object from(final Class> paramType,
final String literal) {
return Fn.getNull(() ->
Fn.getSemi(String.class == paramType, getLogger(),
() -> literal.toString(), () -> Strings.EMPTY),
paramType, literal);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy