org.deri.iris.terms.concrete
Class FloatTerm

java.lang.Object
  extended by org.deri.iris.terms.concrete.AbstractNumericTerm
      extended by org.deri.iris.terms.concrete.FloatTerm
All Implemented Interfaces:
Comparable<ITerm>, IFloatTerm, IConcreteTerm, INumericTerm, ITerm

public class FloatTerm
extends AbstractNumericTerm
implements IFloatTerm

Simple implementation of the IFloatTerm.


Field Summary
 
Fields inherited from interface org.deri.iris.api.terms.concrete.IFloatTerm
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.
 int hashCode()
           
 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, 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
 

Method Detail

getValue

public BigDecimal getValue()
Description copied from interface: INumericTerm
Returns the value of this numeric term represented as a BigDecimal.

Specified by:
getValue in interface INumericTerm
Specified by:
getValue in interface ITerm
Returns:
The BigDecimal representing the value of this numeric term, or null if this term represents "NaN", positive infinity or negative infinity.

isNotANumber

public boolean isNotANumber()
Description copied from interface: INumericTerm
Returns true if this numeric term represents a "NaN" value, false otherwise.

Specified by:
isNotANumber in interface INumericTerm
Returns:
true if this numeric term represents a "NaN" value, false otherwise

isPositiveInfinity

public boolean isPositiveInfinity()
Description copied from interface: INumericTerm
Returns true if this numeric term represents positive infinity, false otherwise.

Specified by:
isPositiveInfinity in interface INumericTerm
Returns:
true if this numeric term represents positive infinity, false otherwise.

isNegativeInfinity

public boolean isNegativeInfinity()
Description copied from interface: INumericTerm
Returns true if this numeric term represents negative infinity, false otherwise.

Specified by:
isNegativeInfinity in interface INumericTerm
Returns:
true if this numeric term represents negative infinity, false otherwise.

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractNumericTerm

getDatatypeIRI

public URI getDatatypeIRI()
Description copied from interface: IConcreteTerm
Returns the fully qualified identifier for the data type corresponding to this term. For instance, a terms representing a double data type should return the URI "http://www.w3.org/2001/XMLSchema#double".

Specified by:
getDatatypeIRI in interface IConcreteTerm
Returns:
The fully qualified identifier for the data type corresponding to this term.