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

Java tutorial

Introduction

Here is the source code for com.fasterxml.jackson.databind.node.DoubleNode.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 DoubleNode extends NumericNode {
      protected final double _value;

      public DoubleNode(double paramDouble) {
          this._value = paramDouble;
      }

      public static DoubleNode valueOf(double paramDouble) {
          return new DoubleNode(paramDouble);
      }

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

      public boolean equals(Object paramObject) {
          if (paramObject == this)
              ;
          double d;
          do {
              return true;
              if (paramObject == null)
                  return false;
              if (paramObject.getClass() != getClass())
                  return false;
              d = ((DoubleNode) paramObject)._value;
          } while (Double.compare(this._value, d) == 0);
          return false;
      }

      public int hashCode() {
          long l = Double.doubleToLongBits(this._value);
          return (int) l ^ (int) (l >> 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.DoubleNode
   * JD-Core Version:    0.6.2
   */