Exemplo n.º 1
0
 /**
  * Mutant factory for constructing an instance with different inclusion strategy for content (Map
  * values).
  *
  * @since 2.9
  */
 public MapSerializer withContentInclusion(Object suppressableValue, boolean suppressNulls) {
   if ((suppressableValue == _suppressableValue) && (suppressNulls == _suppressNulls)) {
     return this;
   }
   _ensureOverride("withContentInclusion");
   return new MapSerializer(this, _valueTypeSerializer, suppressableValue, suppressNulls);
 }
Exemplo n.º 2
0
 /** @deprecated since 2.9 */
 @Deprecated // since 2.9
 public MapSerializer withContentInclusion(Object suppressableValue) {
   if (suppressableValue == _suppressableValue) {
     return this;
   }
   _ensureOverride("withContentInclusion");
   return new MapSerializer(this, _valueTypeSerializer, suppressableValue, _suppressNulls);
 }
Exemplo n.º 3
0
 @Override
 public MapSerializer withFilterId(Object filterId) {
   if (_filterId == filterId) {
     return this;
   }
   _ensureOverride("withFilterId");
   return new MapSerializer(this, filterId, _sortKeys);
 }
Exemplo n.º 4
0
 @Override
 public MapSerializer _withValueTypeSerializer(TypeSerializer vts) {
   if (_valueTypeSerializer == vts) {
     return this;
   }
   _ensureOverride("_withValueTypeSerializer");
   return new MapSerializer(this, vts, _suppressableValue, _suppressNulls);
 }
Exemplo n.º 5
0
 /** @since 2.4 */
 public MapSerializer withResolved(
     BeanProperty property,
     JsonSerializer<?> keySerializer,
     JsonSerializer<?> valueSerializer,
     Set<String> ignored,
     boolean sortKeys) {
   _ensureOverride("withResolved");
   MapSerializer ser = new MapSerializer(this, property, keySerializer, valueSerializer, ignored);
   if (sortKeys != ser._sortKeys) {
     ser = new MapSerializer(ser, _filterId, sortKeys);
   }
   return ser;
 }
Exemplo n.º 6
0
 /** @since 2.5 */
 @Deprecated // since 2.9
 protected void _ensureOverride() {
   _ensureOverride("N/A");
 }