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