Class CacheSerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<com.google.common.cache.Cache<?,?>>
com.fasterxml.jackson.databind.ser.std.StdSerializer<com.google.common.cache.Cache<?,?>>
com.fasterxml.jackson.datatype.guava.ser.CacheSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.jsonschema.SchemaAware, Serializable

public class CacheSerializer extends com.fasterxml.jackson.databind.ser.std.StdSerializer<com.google.common.cache.Cache<?,?>>
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

    com.fasterxml.jackson.databind.JsonSerializer.None
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final long
     

    Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer

    _handledType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    _writeContents(com.google.common.cache.Cache<?,?> value, com.fasterxml.jackson.core.JsonGenerator g, com.fasterxml.jackson.databind.SerializerProvider ctxt)
     
    boolean
    isEmpty(com.fasterxml.jackson.databind.SerializerProvider prov, com.google.common.cache.Cache<?,?> value)
     
    void
    serialize(com.google.common.cache.Cache<?,?> value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider)
     
    void
    serializeWithType(com.google.common.cache.Cache<?,?> value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider ctxt, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
     

    Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer

    _neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow

    Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

    getDelegatee, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • CacheSerializer

      public CacheSerializer()
  • Method Details

    • isEmpty

      public boolean isEmpty(com.fasterxml.jackson.databind.SerializerProvider prov, com.google.common.cache.Cache<?,?> value)
      Overrides:
      isEmpty in class com.fasterxml.jackson.databind.JsonSerializer<com.google.common.cache.Cache<?,?>>
    • serialize

      public void serialize(com.google.common.cache.Cache<?,?> value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
      Specified by:
      serialize in class com.fasterxml.jackson.databind.ser.std.StdSerializer<com.google.common.cache.Cache<?,?>>
      Throws:
      IOException
    • serializeWithType

      public void serializeWithType(com.google.common.cache.Cache<?,?> value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider ctxt, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException
      Overrides:
      serializeWithType in class com.fasterxml.jackson.databind.JsonSerializer<com.google.common.cache.Cache<?,?>>
      Throws:
      IOException
    • _writeContents

      protected void _writeContents(com.google.common.cache.Cache<?,?> value, com.fasterxml.jackson.core.JsonGenerator g, com.fasterxml.jackson.databind.SerializerProvider ctxt) throws com.fasterxml.jackson.core.JacksonException
      Throws:
      com.fasterxml.jackson.core.JacksonException