io.vertx.up.uca.serialization.ShortSaber Maven / Gradle / Ivy
package io.vertx.up.uca.serialization;
import java.util.function.Function;
/**
* Short type
*/
@SuppressWarnings("unchecked")
public class ShortSaber extends NumericSaber {
@Override
protected boolean isValid(final Class> paramType) {
return short.class == paramType || Short.class == paramType;
}
@Override
protected Function getFun() {
return Short::parseShort;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy