final class JsonNumberImpl extends Object implements javax.json.JsonNumber
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() |
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 Integer hashCode
JsonNumberImpl(BigDecimal decimal)
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()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.