public class Fixed8 extends Object implements Comparable<Fixed8>, Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
DefaultPrecision |
static Fixed8 |
MAX_VALUE |
static Fixed8 |
MIN_VALUE |
static Fixed8 |
ONE |
static Fixed8 |
SATOSHI |
static Fixed8 |
ZERO |
| Modifier and Type | Method and Description |
|---|---|
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,
java.util.function.Function<T,Fixed8> selector) |
long |
toLong() |
String |
toString() |
static boolean |
tryParse(String s,
Fixed8 result) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitfrom, 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 static <T> Fixed8 sum(T[] values, java.util.function.Function<T,Fixed8> selector)
public Fixed8 abs()
public int compareTo(Fixed8 other)
compareTo in interface 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 in interface SerializableIOExceptionpublic void deserialize(BinaryReader reader) throws IOException
deserialize in interface SerializableIOExceptionCopyright © 2020. All rights reserved.