io.vertx.up.uca.serialization.ByteArraySaber Maven / Gradle / Ivy
package io.vertx.up.uca.serialization;
import io.vertx.up.eon.Values;
import io.vertx.up.fn.Fn;
public class ByteArraySaber extends BaseSaber {
@Override
public Object from(final Class> paramType,
final String literal) {
return Fn.getNull(() -> Fn.getSemi(Byte[].class == paramType ||
byte[].class == paramType, getLogger(),
() -> literal.getBytes(Values.CHARSET), () -> new byte[0]),
paramType, literal);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy