All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.pgelinas.jackson.javax.json.JacksonValueNode Maven / Gradle / Ivy

Go to download

An alternate implementation of JSR-353 based on Jackson, which aims to bring better performance and configurability.

The newest version!
package com.github.pgelinas.jackson.javax.json;

import com.fasterxml.jackson.databind.node.*;

public class JacksonValueNode implements JacksonValue {
    protected T _delegate;

    public JacksonValueNode(T delegate) {
        _delegate = delegate;
    }

    @Override
    public ValueType getValueType() {
        return JacksonValueUtils.getValueType(this);
    }

    @Override
    public T delegate() {
        return _delegate;
    }

    public final int hashCode() {
        return _delegate.hashCode();
    }
    
    @Override
    public final boolean equals(Object obj) {
        return JacksonValueUtils.isEquals(this, obj);
    }
    
    @Override
    public final String toString() {
        return _delegate.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy