1 package com.fasterxml.jackson.databind.jsonFormatVisitors; 2 3 import com.fasterxml.jackson.core.JsonParser; 4 5 public interface JsonIntegerFormatVisitor extends JsonValueFormatVisitor 6 { 7 /** 8 * Method called to provide more exact type of number being serialized 9 * (regardless of logical type, which may be {@link java.util.Date} or 10 * {@link java.lang.Enum}, in addition to actual numeric types like 11 * {@link java.lang.Integer}). 12 */ numberType(JsonParser.NumberType type)13 public void numberType(JsonParser.NumberType type); 14 15 /** 16 * Default "empty" implementation, useful as the base to start on; 17 * especially as it is guaranteed to implement all the method 18 * of the interface, even if new methods are getting added. 19 */ 20 public static class Base extends JsonValueFormatVisitor.Base 21 implements JsonIntegerFormatVisitor { 22 @Override numberType(JsonParser.NumberType type)23 public void numberType(JsonParser.NumberType type) { } 24 } 25 } 26