|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttcra.math.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. |
|
| Method Summary | |
|---|---|
boolean |
equals(int val)
Compares the stored value to the integer supplied. |
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 |
toHTMLString()
In case the toString() function includes character that would not properly display in HTML, this string returns an HTML compliant version. |
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| Method Detail |
|---|
public boolean equals(java.lang.Object other)
equals 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 boolean equals(int val)
val - integer to compare to
true if the values are equal
false otherwisepublic int getValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toHTMLString()
MathType< and
>.
toHTMLString in interface MathType
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||