public class Int extends Number
Constructor and Description |
---|
Int(int v) |
Modifier and Type | Method and Description |
---|---|
double |
doubleValue()
Returns the value of the Integer as double
|
float |
floatValue()
Returns the value of the Integer as float
|
int |
intValue()
Returns the value of the Integer as int
|
boolean |
isDouble()
Deprecated.
Use instanceof alice.tuprolog.Double instead.
|
boolean |
isEqual(Prolog mediator,
Term t)
Returns true if this integer term is equal to the term provided.
|
boolean |
isFloat()
Deprecated.
Use instanceof alice.tuprolog.Float instead.
|
boolean |
isGreater(Prolog mediator,
Term t)
Returns true if this integer term is grater that the term provided.
|
boolean |
isInt()
Deprecated.
Use instanceof Int instead.
|
boolean |
isInteger()
is this term a prolog integer term?
|
boolean |
isLong()
Deprecated.
Use instanceof alice.tuprolog.Long instead.
|
boolean |
isReal()
is this term a prolog real term?
|
boolean |
isTypeDouble()
Deprecated.
Use instanceof alice.tuprolog.Double instead.
|
boolean |
isTypeFloat()
Deprecated.
Use instanceof alice.tuprolog.Float instead.
|
boolean |
isTypeInt()
Deprecated.
Use instanceof Int instead.
|
boolean |
isTypeLong()
Deprecated.
Use instanceof alice.tuprolog.Long instead.
|
long |
longValue()
Returns the value of the Integer as long
|
String |
toString() |
boolean |
unify(Prolog mediator,
List vl1,
List vl2,
Term t)
Tries to unify a term with the provided term argument.
|
copy, copy, copy, createNumber, free, getTerm, isAtom, isAtomic, isCompound, isEmptyList, isGround, isList, isNumber, isStruct, isVar, resolveTerm
copyGoal, copyResult, createTerm, createTerm, equals, getIterator, iteratedGoalTerm, match, parse, parse, resolveTerm, unify
public final int intValue()
public final float floatValue()
floatValue
in class Number
public final double doubleValue()
doubleValue
in class Number
public final long longValue()
public final boolean isInteger()
public final boolean isReal()
public final boolean isTypeInt()
public final boolean isInt()
public final boolean isTypeFloat()
isTypeFloat
in class Number
public final boolean isFloat()
public final boolean isTypeDouble()
isTypeDouble
in class Number
public final boolean isDouble()
public final boolean isTypeLong()
isTypeLong
in class Number
public final boolean isLong()
public boolean isGreater(Prolog mediator, Term t)
public boolean isEqual(Prolog mediator, Term t)
public boolean unify(Prolog mediator, List vl1, List vl2, Term t)
Copyright © 2015. All rights reserved.