final class JsonNumberImpl extends Object implements javax.json.JsonNumber, Serializable
Modifier and Type | Field and Description |
---|---|
private Integer |
hashCode |
private BigDecimal |
value |
Constructor and Description |
---|
JsonNumberImpl(BigDecimal decimal) |
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() |
Number |
numberValue() |
String |
toString() |
private final BigDecimal value
private transient Integer hashCode
JsonNumberImpl(BigDecimal decimal)
public 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 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–2022 The Apache Software Foundation. All rights reserved.