public class Fixed8 extends Object implements Comparable<Fixed8>, Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DefaultPrecision |
static Fixed8 |
MAX_VALUE |
static Fixed8 |
MIN_VALUE |
static Fixed8 |
ONE |
static Fixed8 |
SATOSHI |
static Fixed8 |
ZERO |
| 限定符和类型 | 方法和说明 |
|---|---|
Fixed8 |
abs() |
Fixed8 |
add(Fixed8 other) |
int |
compareTo(Fixed8 other) |
void |
deserialize(BinaryReader reader) |
Fixed8 |
divide(long other) |
boolean |
equals(Object obj) |
static Fixed8 |
fromDecimal(BigDecimal val) |
static Fixed8 |
fromLong(long val) |
long |
getData() |
int |
hashCode() |
static Fixed8 |
max(Fixed8 first,
Fixed8... others) |
static Fixed8 |
min(Fixed8 first,
Fixed8... others) |
Fixed8 |
multiply(long other) |
Fixed8 |
negate() |
static Fixed8 |
parse(String s) |
void |
serialize(BinaryWriter writer) |
Fixed8 |
subtract(Fixed8 other) |
static Fixed8 |
sum(Fixed8[] values) |
static <T> Fixed8 |
sum(T[] values,
Function<T,Fixed8> selector) |
long |
toLong() |
String |
toString() |
static boolean |
tryParse(String s,
Fixed8 result) |
from, toArray, toHexStringpublic static final Fixed8 MAX_VALUE
public static final Fixed8 MIN_VALUE
public static final Fixed8 SATOSHI
public static final Fixed8 ZERO
public static int DefaultPrecision
public static final Fixed8 ONE
public static Fixed8 fromDecimal(BigDecimal val)
public static Fixed8 fromLong(long val)
public Fixed8 abs()
public int compareTo(Fixed8 other)
compareTo 在接口中 Comparable<Fixed8>public long getData()
public long toLong()
public Fixed8 multiply(long other)
public Fixed8 divide(long other)
public Fixed8 negate()
public void serialize(BinaryWriter writer) throws IOException
serialize 在接口中 SerializableIOExceptionpublic void deserialize(BinaryReader reader) throws IOException
deserialize 在接口中 SerializableIOExceptionCopyright © 2021. All rights reserved.