Skip to content

Latest commit

 

History

History
115 lines (81 loc) · 1.68 KB

Hbar.md

File metadata and controls

115 lines (81 loc) · 1.68 KB

Hbar

Table of Contents
Item Java JavaScript Go
ZERO
MAX
MIN
fromString()
from()
fromTinybars()
toTinybars()
to()
getValue()
negated()
equals()
compareTo()

Constants

ZERO

A constant value of zero hbars.

ZERO: this

MAX

A constant value of the maximum number of hbars.

MAX: this

MIN

A constant value of the minimum number of hbars.

MIN: this

Methods

constructor()

costructor(amount: long | amount: BigDecimal)

fromString()

fromString(
    text: CharSequence
    | text: CharSequence, unit: HbarUnit): this

from()

from(
    hbars: long
    | amount: long, unit: HbarUnit
    | hbars: BigDecimal
    | amount: BigDecimal, unit: HbarUnit): this

fromTinybars()

fromTinybars(tinybars: long): this

toTinybars()

toTinybars(): long

to()

to(unit: HbarUnit): BigDecimal

getValue()

getValue(): BigDecimal

negated()

negated(): this

equals()

equals(o: Object): boolean

compareTo()

compareTo(hbar: Hbar): int