|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Number | +--step.StepInt
Implementation of the built-in STEP int
type.
Field Summary | |
static Type |
TYPE
The STEP type for int objects. |
Constructor Summary | |
StepInt(byte byteValue)
Create a STEP int from a byte value. |
|
StepInt(int intValue)
Create a STEP int from a (Java) int value. |
|
StepInt(long longValue)
Create a STEP int from a long value. |
|
StepInt(short shortValue)
Create a STEP int from a short value. |
Method Summary | |
StepInt |
add(StepInt rhs)
Add two STEP int values. |
byte |
byteValue()
Convert this object to a byte value. |
StepInt |
div(StepInt rhs)
Divide this value by another STEP int value. |
double |
doubleValue()
Convert this object to a double value. |
boolean |
equals(Object o)
Compare two STEP int values for equality. |
float |
floatValue()
Convert this object to a float value. |
int |
hashCode()
Get a hash code for this value. |
int |
intValue()
Convert this object to a (Java) int value. |
long |
longValue()
Convert this object to a long value. |
StepInt |
mod(StepInt rhs)
Get the division remainder of this value divided by another STEP int value. |
StepInt |
mul(StepInt rhs)
Multiply two STEP int values. |
void |
setValue(byte byteValue)
Set the value for this STEP int from a byte value. |
void |
setValue(int intValue)
Set the value for this STEP int from a (Java) int value. |
void |
setValue(long longValue)
Set the value for this STEP int from a long value. |
void |
setValue(short shortValue)
Set the value for this STEP int from a short value. |
short |
shortValue()
Convert this object to a short value. |
StepInt |
sub(StepInt rhs)
Subtract a STEP int value from this value. |
String |
toString()
Get a text version of this value. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Type TYPE
int
objects.
Constructor Detail |
public StepInt(byte byteValue)
byte
value.
public StepInt(short shortValue)
short
value.
public StepInt(int intValue)
int
value.
public StepInt(long longValue)
long
value.
Method Detail |
public void setValue(byte byteValue)
byte
value.
public void setValue(short shortValue)
short
value.
public void setValue(int intValue)
int
value.
public void setValue(long longValue)
long
value.
public byte byteValue()
byte
value.
NOTE: Values outside the [-128..127] range are truncated.
byteValue
in class Number
public double doubleValue()
double
value.
doubleValue
in class Number
public float floatValue()
float
value.
floatValue
in class Number
public int intValue()
int
value.
NOTE: Values outside the [-2147483648..2147483647] range are truncated.
intValue
in class Number
public long longValue()
long
value.
longValue
in class Number
public short shortValue()
short
value.
NOTE: Values outside the [-32768..32767] range are truncated.
shortValue
in class Number
public StepInt add(StepInt rhs)
NullPointerException
- if the argument is null
.public StepInt sub(StepInt rhs)
NullPointerException
- if the argument is null
.public StepInt mul(StepInt rhs)
NullPointerException
- if the argument is null
.public StepInt div(StepInt rhs)
NullPointerException
- if the argument is null
.public StepInt mod(StepInt rhs)
NullPointerException
- if the argument is null
.public boolean equals(Object o)
equals
in interface StepObject
equals
in class Object
public int hashCode()
hashCode
in interface StepObject
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |