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