|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Number org.norther.tammi.acorn.lang.Multiword
public class Multiword
A number of multiple words.
Field Summary | |
---|---|
static int |
MAX_SIZE
The max number of bits in one word. |
Constructor Summary | |
---|---|
Multiword(byte... bb)
Constucts a multi-byte. |
|
Multiword(int... ib)
Constucts a multi-int. |
|
Multiword(long mw)
Constructs a long. |
|
Multiword(long mw,
int size)
Constructs a multiword from a long. |
|
Multiword(Number mw,
int size)
Constructs a multiword from a number. |
|
Multiword(short... sb)
Constucts a multi-short. |
Method Summary | |
---|---|
byte |
byteValue(int index)
Returns the indexed byte value starting from the high order word. |
int |
compareTo(Number another)
|
double |
doubleValue()
|
double |
doubleValue(int index)
Returns the indexed double value starting from the high order word. |
boolean |
equals(Object obj)
|
float |
floatValue()
|
float |
floatValue(int index)
Returns the indexed float value starting from the high order word. |
int |
hashCode()
|
int |
intValue()
|
int |
intValue(int index)
Returns the indexed int value starting from the high order word. |
int |
length()
Returns the number of words in this multiword. |
long |
longValue()
|
long |
longValue(int index)
Returns the indexed long value starting from the high order word. |
short |
shortValue(int index)
Returns the indexed short value starting from the high order word. |
int |
size()
Returns the number of bits in one word of this multiword. |
String |
toString()
|
long |
wordValue(int index)
Returns the indexed word value starting from the high order word. |
Methods inherited from class java.lang.Number |
---|
byteValue, shortValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAX_SIZE
Constructor Detail |
---|
public Multiword(byte... bb)
bb
- the byte buffer.public Multiword(short... sb)
sb
- the short buffer.public Multiword(int... ib)
ib
- the int buffer.public Multiword(long mw)
mw
- the long.public Multiword(long mw, int size)
mw
- the long.size
- the size of one word.public Multiword(Number mw, int size)
mw
- the number.size
- the size of one word.Method Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(Number another)
compareTo
in interface Comparable<Number>
public String toString()
toString
in class Object
public int intValue()
intValue
in class Number
public long longValue()
longValue
in class Number
public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
public byte byteValue(int index)
index
- the index.
public short shortValue(int index)
index
- the index.
public int intValue(int index)
index
- the index.
public long longValue(int index)
index
- the index.
public float floatValue(int index)
The value returned is that of the indexed word of this multiword.
index
- the index.
public double doubleValue(int index)
The value returned is that of the indexed word of this multiword.
index
- the index.
public long wordValue(int index)
index
- the index.
public int length()
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |