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