public class Number128 extends Number implements Comparable<Number128>
Constructor and Description |
---|
Number128(long mostSigBits,
long leastSigBits)
构造
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Number128 o) |
double |
doubleValue() |
boolean |
equals(Object o) |
float |
floatValue() |
long |
getLeastSigBits()
获取最低有效位(Least Significant Bit),64 bit(8 bytes)
|
long[] |
getLongArray(ByteOrder byteOrder)
获取高低位数组,规则为:
ByteOrder.LITTLE_ENDIAN ,则long[0]:低位,long[1]:高位
ByteOrder.BIG_ENDIAN ,则long[0]:高位,long[1]:低位
|
long |
getMostSigBits()
获取最高有效位(Most Significant Bit),64 bit(8 bytes)
|
int |
hashCode() |
int |
intValue() |
long |
longValue() |
void |
setLeastSigBits(long leastSigBits)
设置最低有效位(Least Significant Bit),64 bit(8 bytes)
|
void |
setMostSigBits(long hiValue)
设置最高有效位(Most Significant Bit),64 bit(8 bytes)
|
byteValue, shortValue
public Number128(long mostSigBits, long leastSigBits)
mostSigBits
- 高位leastSigBits
- 低位public long getMostSigBits()
public void setMostSigBits(long hiValue)
hiValue
- 最高有效位(Most Significant Bit),64 bit(8 bytes)public long getLeastSigBits()
public void setLeastSigBits(long leastSigBits)
leastSigBits
- 最低有效位(Least Significant Bit),64 bit(8 bytes)public long[] getLongArray(ByteOrder byteOrder)
ByteOrder.LITTLE_ENDIAN
,则long[0]:低位,long[1]:高位ByteOrder.BIG_ENDIAN
,则long[0]:高位,long[1]:低位byteOrder
- 端续public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
public int compareTo(Number128 o)
compareTo
in interface Comparable<Number128>
Copyright © 2025. All rights reserved.