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