Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.jackson.module.afterburner.deser;
 
 
public final class SettableLongMethodProperty
            BeanPropertyMutator mutatorint index)
    {
        super(srcmutatorindex);
    }
        super(srcdeser);
    }
    @Override
        return new SettableLongMethodProperty(thisdeser);
    }
    
    @Override
        return new SettableLongMethodProperty(mut);
    }
    
    @Override
    public void deserializeAndSet(JsonParser jpDeserializationContext ctxt,
            Object beanthrows IOExceptionJsonProcessingException
    {
        long value;
        if (jp.getCurrentToken() == .) {
            value = jp.getLongValue();
        } else {
            value = jp.getValueAsLong();
        }
        .longSetter(beanvalue);
    }
    @Override
    public void set(Object beanObject valuethrows IOException {
        // not optimal (due to boxing), but better than using reflection:
        .longSetter(bean, ((Numbervalue).longValue());
    }
New to GrepCode? Check out our FAQ X