Table of Contents
Item | Java | JavaScript | Go |
---|---|---|---|
ZERO |
✅ | ✅ | ✅ |
MAX |
✅ | ✅ | ✅ |
MIN |
✅ | ✅ | ✅ |
fromString() |
✅ | ✅ | ✅ |
from() |
✅ | ✅ | ✅ |
fromTinybars() |
✅ | ✅ | ✅ |
toTinybars() |
✅ | ✅ | ✅ |
to() |
✅ | ✅ | ✅ |
getValue() |
✅ | ✅ | ✅ |
negated() |
✅ | ✅ | ✅ |
equals() |
✅ | ✅ | ✅ |
compareTo() |
✅ | ✅ | ✅ |
A constant value of zero hbars.
ZERO: this
A constant value of the maximum number of hbars.
MAX: this
A constant value of the minimum number of hbars.
MIN: this
costructor(amount: long | amount: BigDecimal)
fromString(
text: CharSequence
| text: CharSequence, unit: HbarUnit): this
from(
hbars: long
| amount: long, unit: HbarUnit
| hbars: BigDecimal
| amount: BigDecimal, unit: HbarUnit): this
fromTinybars(tinybars: long): this
toTinybars(): long
to(unit: HbarUnit): BigDecimal
getValue(): BigDecimal
negated(): this
equals(o: Object): boolean
compareTo(hbar: Hbar): int