final class JsonDoubleImpl
extends java.lang.Object
implements javax.json.JsonNumber, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
hashCode |
private double |
value |
Constructor and Description |
---|
JsonDoubleImpl(double value) |
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
bigDecimalValue() |
java.math.BigInteger |
bigIntegerValue() |
java.math.BigInteger |
bigIntegerValueExact() |
private void |
checkFractionalPart() |
double |
doubleValue() |
boolean |
equals(java.lang.Object obj) |
javax.json.JsonValue.ValueType |
getValueType() |
int |
hashCode() |
int |
intValue() |
int |
intValueExact() |
boolean |
isIntegral() |
long |
longValue() |
long |
longValueExact() |
java.lang.Number |
numberValue() |
java.lang.String |
toString() |
public java.lang.Number numberValue()
numberValue
in interface javax.json.JsonNumber
public boolean isIntegral()
isIntegral
in interface javax.json.JsonNumber
public int intValue()
intValue
in interface javax.json.JsonNumber
public int intValueExact()
intValueExact
in interface javax.json.JsonNumber
public long longValue()
longValue
in interface javax.json.JsonNumber
public long longValueExact()
longValueExact
in interface javax.json.JsonNumber
public java.math.BigInteger bigIntegerValue()
bigIntegerValue
in interface javax.json.JsonNumber
public java.math.BigInteger bigIntegerValueExact()
bigIntegerValueExact
in interface javax.json.JsonNumber
public double doubleValue()
doubleValue
in interface javax.json.JsonNumber
public java.math.BigDecimal bigDecimalValue()
bigDecimalValue
in interface javax.json.JsonNumber
public javax.json.JsonValue.ValueType getValueType()
getValueType
in interface javax.json.JsonValue
public java.lang.String toString()
toString
in interface javax.json.JsonNumber
toString
in interface javax.json.JsonValue
toString
in class java.lang.Object
public int hashCode()
hashCode
in interface javax.json.JsonNumber
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in interface javax.json.JsonNumber
equals
in class java.lang.Object
private void checkFractionalPart()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.