|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttcra.MathInteger
public class MathInteger
MathInteger is the mathematical representation of an integer inside another MathType or an integer argument to a method.
| Constructor Summary | |
|---|---|
MathInteger(int val)
Constructor specifying the value of the integer. |
|
MathInteger(int val,
MathIntegerParser mip)
Constructor specifying the value of the integer and the MathIntegerParser that parsed it from a String. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
Checks if the MathInteger representation of an integer and the stored integer value are equal. |
int |
getValue()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MathInteger(int val)
val - Integer value
public MathInteger(int val,
MathIntegerParser mip)
val - Integer valuemip - MathIntegerParser that parsed the MathInteger from
a String.| Method Detail |
|---|
public boolean equals(java.lang.Object other)
equals in interface MathTypeequals in class java.lang.Objectother - MathInteger that this is to be compared to.
true if the stored value and the other
MathString's value are equal
false otherwisepublic int getValue()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||