|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.models.JMLShort
A reflection of Short that implements JMLType.
Short,
JMLChar,
JMLByte,
JMLInteger,
JMLLong,
JMLType| Field Summary | |
static JMLShort |
ONE
The JMLShort that represents one. |
private short |
shortValue
The short value of this object. |
static JMLShort |
ZERO
The JMLShort that represents zero. |
| Constructor Summary | |
JMLShort()
Initialize this object to 0. |
|
JMLShort(Short inShort)
Initialize this object to the given short. |
|
JMLShort(String s)
Initialize this object to the given short. |
|
JMLShort(short inShort)
Initialize this object to the given short. |
|
| Method Summary | |
Object |
clone()
Return a clone of this object. |
int |
compareTo(Object op2)
Compare this to op2, returning a comparison code. |
JMLShort |
dividedBy(JMLShort i2)
Return a new object containing the quotient of this object's short value divided by that of the given argument. |
boolean |
equals(Object op2)
Test whether this object's value is equal to the given argument. |
Short |
getShort()
Return an Short object containing the short value in this object. |
boolean |
greaterThan(JMLShort i2)
Tell whether this object's short value is strictly greater than that of the given argument. |
boolean |
greaterThanOrEqualTo(JMLShort i2)
Tell whether this object's short value is greater than or equal to that of the given argument. |
int |
hashCode()
Return a hash code for this object. |
boolean |
lessThan(JMLShort i2)
Tell whether this object's short value is strictly less than that of the given argument. |
boolean |
lessThanOrEqualTo(JMLShort i2)
Tell whether this object's short value is less than or equal to that of the given argument. |
JMLShort |
minus(JMLShort i2)
Return a new object containing the difference between this object's short value and that of the given argument. |
JMLShort |
negated()
Return a new object containing the negation of this object's short value. |
JMLShort |
plus(JMLShort i2)
Return a new object containing the sum of this object's short value and that of the given argument. |
JMLShort |
remainderBy(JMLShort i2)
Return a new object containing the remainder of this object's short value divided by that of the given argument. |
short |
shortValue()
Return the short value in this object. |
JMLShort |
times(JMLShort i2)
Return a new object containing the product of this object's short 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 |
private short shortValue
public static final JMLShort ZERO
public static final JMLShort ONE
| Constructor Detail |
public JMLShort()
public JMLShort(short inShort)
public JMLShort(Short inShort)
inShort - an object containing the value to use.
public JMLShort(String s)
throws JMLTypeException
s - a string that contains the decimal representation of
the desired value.
JMLTypeException| Method Detail |
public Object clone()
clone in interface JMLTypeclone 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 JMLShort.public boolean equals(Object op2)
equals in interface JMLTypeequals in class Objectpublic int hashCode()
hashCode in interface JMLTypehashCode in class Objectpublic short shortValue()
public Short getShort()
public JMLShort negated()
public JMLShort plus(JMLShort i2)
public JMLShort minus(JMLShort i2)
public JMLShort times(JMLShort i2)
public JMLShort dividedBy(JMLShort i2)
public JMLShort remainderBy(JMLShort i2)
public boolean greaterThan(JMLShort i2)
public boolean lessThan(JMLShort i2)
public boolean greaterThanOrEqualTo(JMLShort i2)
public boolean lessThanOrEqualTo(JMLShort i2)
public String toString()
toString in class Object
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||