Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.jackson.databind.introspect;
 
Container object that encapsulates information usually derived from com.fasterxml.jackson.annotation.JsonIdentityInfo annotation or its custom alternatives
public class ObjectIdInfo
    protected final String _propertyName;
    protected final Class<? extends ObjectIdGenerator<?>> _generator;
    protected final Class<?> _scope;
    protected final boolean _alwaysAsId;
    public ObjectIdInfo(String propClass<?> scopeClass<? extends ObjectIdGenerator<?>> gen) {
        this(propscopegenfalse);
    }
    protected ObjectIdInfo(String propClass<?> scopeClass<? extends ObjectIdGenerator<?>> gen,
            boolean alwaysAsId)
    {
         = prop;
         = scope;
         = gen;
         = alwaysAsId;
    }
    public ObjectIdInfo withAlwaysAsId(boolean state) {
        if ( == state) {
            return this;
        }
        return new ObjectIdInfo(state);
    }
    
    public String getPropertyName() { return ; }
    public Class<?> getScope() { return ; }
    public Class<? extends ObjectIdGenerator<?>> getGeneratorType() { return ; }
    public boolean getAlwaysAsId() { return ; }
    @Override
    public String toString() {
        return "ObjectIdInfo: propName="+
                +", scope="+( == null ? "null" : .getName())
                +", generatorType="+( == null ? "null" : .getName())
                +", alwaysAsId="+;
    }
New to GrepCode? Check out our FAQ X