|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.models.JMLChar
A reflection of Character that implements JMLType.
Character,
JMLByte,
JMLShort,
JMLInteger,
JMLLong,
JMLString,
JMLType| Field Summary | |
protected char |
value
The character that is the abstract value of this object. |
static JMLChar |
ZERO
The JMLChar that represents zero. |
| Constructor Summary | |
JMLChar()
Initialize this to contain the null character. |
|
JMLChar(char c)
Initialize this to contain the given character. |
|
JMLChar(Character inChar)
Initialize this to contain the character contained in the given Character. |
|
| Method Summary | |
char |
charValue()
Return the character contained in this object. |
Object |
clone()
Return a clone of this object. |
int |
compareTo(Object op2)
Compare this to op2, returning a comparison code. |
JMLChar |
dividedBy(JMLChar i2)
Return a new object containing the quotient of this object's char value divided by that of the given argument. |
boolean |
equals(Object obj)
Test whether this object's value is equal to the given argument. |
Character |
getChar()
Return a Character object containing this object's character. |
boolean |
greaterThan(JMLChar i2)
Tell whether this this object's char value is strictly greater than that of the given argument. |
boolean |
greaterThanOrEqualTo(JMLChar i2)
Tell whether this this object's char value is greater than or equal to that of the given argument. |
int |
hashCode()
Return a hash code for this object. |
int |
intValue()
Return the integer corresponding to this character. |
boolean |
lessThan(JMLChar i2)
Tell whether this this object's char value is strictly less than that of the given argument. |
boolean |
lessThanOrEqualTo(JMLChar i2)
Tell whether this this object's char value is less than or equal to that of the given argument. |
JMLChar |
minus(JMLChar i2)
Return a new object containing the difference between of this object's char value and that of the given argument. |
JMLChar |
plus(JMLChar i2)
Return a new object containing the sum of this object's char value and that of the given argument. |
JMLChar |
remainderBy(JMLChar i2)
Return a new object containing the remainder of this object's char value divided by that of the given argument. |
JMLChar |
times(JMLChar i2)
Return a new object containing the product of this object's char value and that of the given argument. |
String |
toString()
Return a string representation of this object. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected final char value
public static final JMLChar ZERO
| Constructor Detail |
public JMLChar()
public JMLChar(char c)
public JMLChar(Character inChar)
| Method Detail |
public Object clone()
clone in interface JMLTypeclone in class Objectpublic char charValue()
public Character getChar()
public int hashCode()
hashCode in interface JMLTypehashCode in class Object
public int compareTo(Object op2)
throws ClassCastException
compareTo in interface JMLComparableop2 - the object this is compared to.
ClassCastException - when o is not a JMLChar.public boolean equals(Object obj)
equals in interface JMLTypeequals in class Objectpublic String toString()
toString in class Objectpublic int intValue()
public JMLChar plus(JMLChar i2)
public JMLChar minus(JMLChar i2)
public JMLChar times(JMLChar i2)
public JMLChar dividedBy(JMLChar i2)
public JMLChar remainderBy(JMLChar i2)
public boolean greaterThan(JMLChar i2)
public boolean lessThan(JMLChar i2)
public boolean greaterThanOrEqualTo(JMLChar i2)
public boolean lessThanOrEqualTo(JMLChar i2)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||