public final class IntFormat
extends java.lang.Object
IntFormat
represents an integer number format.Modifier and Type | Field and Description |
---|---|
static IntFormat |
INT1
1-bit integer numbers.
|
static IntFormat |
INT16
16-bit integer numbers.
|
static IntFormat |
INT32
32-bit integer numbers.
|
static IntFormat |
INT64
64-bit integer numbers.
|
static IntFormat |
INT8
8-bit integer numbers.
|
Constructor and Description |
---|
IntFormat(int length)
Constructs an integer number format.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getLength()
Returns the bit length of a number.
|
long |
getMask()
Returns the bit mask of a number.
|
long |
getMaxValue()
Returns the maximal value (signed).
|
long |
getMinValue()
Returns the minimal value (signed).
|
int |
hashCode() |
java.lang.String |
toString() |
public static final IntFormat INT1
public static final IntFormat INT8
public static final IntFormat INT16
public static final IntFormat INT32
public static final IntFormat INT64
public IntFormat(int length)
length
- the length (in bits).public int getLength()
public long getMask()
public long getMinValue()
public long getMaxValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object