public <T> SimpleModule addKeySerializer(Class<? extends T> type, JsonSerializer<T> ser) { if (_keySerializers == null) { _keySerializers = new SimpleSerializers(); } _keySerializers.addSerializer(type, ser); return this; }
public SimpleModule addSerializer(JsonSerializer<?> ser) { if (_serializers == null) { _serializers = new SimpleSerializers(); } _serializers.addSerializer(ser); return this; }