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() |
String |
toString() |
private final BigDecimal value
private transient Integer hashCode
JsonNumberImpl(BigDecimal decimal)
public boolean isIntegral()
isIntegral in interface javax.json.JsonNumberpublic int intValue()
intValue in interface javax.json.JsonNumberpublic int intValueExact()
intValueExact in interface javax.json.JsonNumberpublic long longValue()
longValue in interface javax.json.JsonNumberpublic long longValueExact()
longValueExact in interface javax.json.JsonNumberpublic BigInteger bigIntegerValue()
bigIntegerValue in interface javax.json.JsonNumberpublic BigInteger bigIntegerValueExact()
bigIntegerValueExact in interface javax.json.JsonNumberpublic double doubleValue()
doubleValue in interface javax.json.JsonNumberpublic BigDecimal bigDecimalValue()
bigDecimalValue in interface javax.json.JsonNumberpublic javax.json.JsonValue.ValueType getValueType()
getValueType in interface javax.json.JsonValuepublic String toString()
public int hashCode()
public boolean equals(Object obj)
private void checkFractionalPart()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.