package io.robe.convert.xml.parsers; import com.fasterxml.jackson.core.JsonParser; import java.io.IOException; import java.lang.reflect.Field; public class ParseLong implements IsParser<Long> { @Override public Long parse(JsonParser parser, Field field) throws IOException { return isValid(parser) ? new Long(parser.getValueAsString()) : null; } }