|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
net.sourceforge.juint.Int8
public class Int8
Signed 8-bit integer.
Field Summary | |
---|---|
static byte |
MAX_VALUE
The largest possible value. |
static byte |
MIN_VALUE
The smallest possible value. |
Constructor Summary | |
---|---|
Int8(byte bite)
Creates a new instance from a byte . |
|
Int8(int bite)
Creates a new instance from an int . |
|
Int8(long bite)
Creates a new instance from a long . |
|
Int8(short bite)
Creates a new instance from a short . |
Method Summary | |
---|---|
Int8 |
addBitmask(Int8 bitmask)
Sets the bits in the given bitmask. |
Int8 |
and(Int8 number)
Logical and. |
int |
compareTo(java.lang.Object object)
Compares this Int8 to another Int8 for order. |
double |
doubleValue()
Gets the value as a double . |
boolean |
equals(java.lang.Object object)
Compares this Int8 to anoter Int8 for equality. |
float |
floatValue()
Gets the value as a float . |
boolean |
hasBitmask(Int8 bitmask)
Determines if this number has the given bitmask. |
int |
hashCode()
Gets the hash code. |
byte |
int8Value()
Gets the value as a signed 8-bit integer. |
int |
intValue()
Gets the value as an int . |
long |
longValue()
Gets the value as a long . |
Int8 |
not()
Logical not. |
Int8 |
or(Int8 number)
Logical or. |
Int8 |
removeBitmask(Int8 bitmask)
Unsets the bits in the given bitmask. |
java.lang.String |
toString()
Gets the value as a String . |
Int8 |
xor(Int8 number)
Logical xor. |
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 byte MAX_VALUE
127
public static final byte MIN_VALUE
-128
Constructor Detail |
---|
public Int8(byte bite)
byte
.
bite
- the value to be representedpublic Int8(short bite)
short
.
bite
- the value to be representedpublic Int8(int bite)
int
.
bite
- the value to be representedpublic Int8(long bite)
long
.
bite
- the value to be representedMethod Detail |
---|
public byte int8Value()
public int intValue()
int
.
intValue
in class java.lang.Number
int
public long longValue()
long
.
longValue
in class java.lang.Number
long
public float floatValue()
float
.
floatValue
in class java.lang.Number
float
public double doubleValue()
double
.
doubleValue
in class java.lang.Number
double
public int compareTo(java.lang.Object object)
Int8
to another Int8
for order.
compareTo
in interface java.lang.Comparable
object
- a Int8
public boolean equals(java.lang.Object object)
Int8
to anoter Int8
for equality.
equals
in class java.lang.Object
object
- a Int8
public int hashCode()
intValue()
.
hashCode
in class java.lang.Object
public java.lang.String toString()
String
.
toString
in class java.lang.Object
String
public Int8 and(Int8 number)
Bitwise
and
in interface Bitwise<Int8>
public Int8 not()
Bitwise
not
in interface Bitwise<Int8>
public Int8 or(Int8 number)
Bitwise
or
in interface Bitwise<Int8>
public Int8 xor(Int8 number)
Bitwise
xor
in interface Bitwise<Int8>
public Int8 addBitmask(Int8 bitmask)
Bitwise
addBitmask
in interface Bitwise<Int8>
public boolean hasBitmask(Int8 bitmask)
Bitwise
hasBitmask
in interface Bitwise<Int8>
true
if the number has the bitmask; false
otherwisepublic Int8 removeBitmask(Int8 bitmask)
Bitwise
removeBitmask
in interface Bitwise<Int8>
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |