org.deri.iris.terms.concrete
Class IntTerm
java.lang.Object
org.deri.iris.terms.concrete.AbstractNumericTerm
org.deri.iris.terms.concrete.DecimalTerm
org.deri.iris.terms.concrete.IntegerTerm
org.deri.iris.terms.concrete.LongTerm
org.deri.iris.terms.concrete.IntTerm
- All Implemented Interfaces:
- Comparable<ITerm>, IDecimalTerm, IIntegerTerm, IIntTerm, ILongTerm, IConcreteTerm, INumericTerm, ITerm
- Direct Known Subclasses:
- ShortTerm
public class IntTerm
- extends LongTerm
- implements IIntTerm
A simple implementation of Int.
- Author:
- Adrian Marte
|
Constructor Summary |
IntTerm(int value)
Creates a new Int for the specified integer. |
|
Method Summary |
URI |
getDatatypeIRI()
Returns the fully qualified identifier for the data type corresponding to
this term. |
| Methods inherited from interface org.deri.iris.api.terms.ITerm |
isGround |
IntTerm
public IntTerm(int value)
- Creates a new Int for the specified integer.
- Parameters:
value - The integer value.
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- Overrides:
getDatatypeIRI in class LongTerm
- Returns:
- The fully qualified identifier for the data type corresponding to
this term.