com.fasterxml.jackson.databind.node.LongNode.java Source code

Java tutorial

Introduction

Here is the source code for com.fasterxml.jackson.databind.node.LongNode.java

Source

package com.fasterxml.jackson.databind.node;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.io.NumberOutput;
import com.fasterxml.jackson.databind.SerializerProvider;

public final class LongNode extends NumericNode {
    final long _value;

    public LongNode(long paramLong) {
        this._value = paramLong;
    }

    public static LongNode valueOf(long paramLong) {
        return new LongNode(paramLong);
    }

    public String asText() {
        return NumberOutput.toString(this._value);
    }

    public boolean equals(Object paramObject) {
        if (paramObject == this)
            ;
        do {
            return true;
            if (paramObject == null)
                return false;
            if (paramObject.getClass() != getClass())
                return false;
        } while (((LongNode) paramObject)._value == this._value);
        return false;
    }

    public int hashCode() {
        return (int) this._value ^ (int) (this._value >> 32);
    }

    public long longValue() {
        return this._value;
    }

    public final void serialize(JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider) {
        paramJsonGenerator.writeNumber(this._value);
    }
}

/* Location:           /Users/dantheman/src/fffffffffattttt/basis/classes_dex2jar.jar
 * Qualified Name:     com.fasterxml.jackson.databind.node.LongNode
 * JD-Core Version:    0.6.2
 */