|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.terms.concrete.AbstractNumericTerm
org.deri.iris.terms.concrete.DecimalTerm
public class DecimalTerm
Simple implementation of IDecimalTerm.
| Field Summary | |
|---|---|
protected BigDecimal |
value
|
| Fields inherited from interface org.deri.iris.api.terms.concrete.IDecimalTerm |
|---|
DATATYPE_URI |
| Method Summary | |
|---|---|
URI |
getDatatypeIRI()
Returns the fully qualified identifier for the data type corresponding to this term. |
BigDecimal |
getValue()
Returns the value of this numeric term represented as a BigDecimal. |
boolean |
isNegativeInfinity()
Returns true if this numeric term represents negative
infinity, false otherwise. |
boolean |
isNotANumber()
Returns true if this numeric term represents a "NaN" value,
false otherwise. |
boolean |
isPositiveInfinity()
Returns true if this numeric term represents positive
infinity, false otherwise. |
| Methods inherited from class org.deri.iris.terms.concrete.AbstractNumericTerm |
|---|
compareTo, equals, hashCode, isGround, toCanonicalString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deri.iris.api.terms.IConcreteTerm |
|---|
toCanonicalString |
| Methods inherited from interface org.deri.iris.api.terms.ITerm |
|---|
isGround |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
protected final BigDecimal value
| Method Detail |
|---|
public BigDecimal getValue()
INumericTerm
getValue in interface INumericTermgetValue in interface ITermnull if this term represents "NaN", positive
infinity or negative infinity.public URI getDatatypeIRI()
IConcreteTerm
getDatatypeIRI in interface IConcreteTermpublic boolean isNotANumber()
INumericTermtrue if this numeric term represents a "NaN" value,
false otherwise.
isNotANumber in interface INumericTermtrue if this numeric term represents a "NaN" value,
false otherwisepublic boolean isPositiveInfinity()
INumericTermtrue if this numeric term represents positive
infinity, false otherwise.
isPositiveInfinity in interface INumericTermtrue if this numeric term represents positive
infinity, false otherwise.public boolean isNegativeInfinity()
INumericTermtrue if this numeric term represents negative
infinity, false otherwise.
isNegativeInfinity in interface INumericTermtrue if this numeric term represents negative
infinity, false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||