public class IntData extends Data
| Modifier and Type | Field and Description |
|---|---|
long |
value |
| Constructor and Description |
|---|
IntData(byte[] data,
long value) |
| Modifier and Type | Method and Description |
|---|---|
static long |
bytesToInt(byte[] data)
Convert bytes to int value
|
static long |
bytesToInt(byte[] data,
java.nio.ByteOrder order) |
boolean |
equals(int other) |
boolean |
equals(IntData other) |
boolean |
equals(long other) |
int |
hashCode() |
static byte[] |
intToBytes(long value,
int length)
Convert int value to bytes
|
static byte[] |
intToBytes(long value,
int length,
java.nio.ByteOrder order) |
public boolean equals(int other)
public boolean equals(long other)
public boolean equals(IntData other)
public static long bytesToInt(byte[] data)
data - - bytes in network orderpublic static long bytesToInt(byte[] data,
java.nio.ByteOrder order)
public static byte[] intToBytes(long value,
int length)
value - - intlength - - size in bytespublic static byte[] intToBytes(long value,
int length,
java.nio.ByteOrder order)