org.deri.iris.terms.concrete
Class AbstractNumericTerm

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

public abstract class AbstractNumericTerm
extends Object
implements INumericTerm

Author:
Adrian Marte

Constructor Summary
AbstractNumericTerm()
           
 
Method Summary
 int compareTo(ITerm thatObject)
           
 boolean equals(Object thatObject)
           
 int hashCode()
           
 boolean isGround()
          Checks whether the term is ground (a term with no variables).
 String toCanonicalString()
          Returns a canonical string representation of this term.
 String 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.INumericTerm
getValue, isNegativeInfinity, isNotANumber, isPositiveInfinity
 
Methods inherited from interface org.deri.iris.api.terms.IConcreteTerm
getDatatypeIRI
 

Constructor Detail

AbstractNumericTerm

public AbstractNumericTerm()
Method Detail

isGround

public boolean isGround()
Description copied from interface: ITerm
Checks whether the term is ground (a term with no variables).

Specified by:
isGround in interface ITerm
Returns:
true if the term is ground, otherwise false.

equals

public boolean equals(Object thatObject)
Overrides:
equals in class Object

compareTo

public int compareTo(ITerm thatObject)
Specified by:
compareTo in interface Comparable<ITerm>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

toCanonicalString

public String toCanonicalString()
Description copied from interface: IConcreteTerm
Returns a canonical string representation of this term.

Specified by:
toCanonicalString in interface IConcreteTerm
Returns:
A canonical string representation of this term.