Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.jackson.databind.jsontype.impl;
 
 
 public abstract class TypeSerializerBase extends TypeSerializer
 {
    protected final TypeIdResolver _idResolver;
    protected final BeanProperty _property;
    
    protected TypeSerializerBase(TypeIdResolver idResBeanProperty property)
    {
         = idRes;
         = property;
    }
    @Override
    public abstract JsonTypeInfo.As getTypeInclusion();
    @Override
    public String getPropertyName() { return null; }
    
    @Override
    public TypeIdResolver getTypeIdResolver() { return ; }
    /*
    /**********************************************************
    /* Helper methods for subclasses
    /**********************************************************
     */
    protected String idFromValue(Object value) {
        return .idFromValue(value);
    }
    protected String idFromValueAndType(Object valueClass<?> type) {
        return .idFromValueAndType(valuetype);
    }
New to GrepCode? Check out our FAQ X