public class Currency extends Hash160
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Currency.CurrencyTranslator
It's better to extend HashTranslator than the Hash160.Translator directly
That way the generics can still vibe with the @Override
|
static class |
Currency.Demurrage |
static class |
Currency.Type |
Hash160.TranslatorHash.HashTranslator<T extends Hash>| 限定符和类型 | 字段和说明 |
|---|---|
Currency.Demurrage |
demurrage |
static Currency |
NEUTRAL |
static Currency.CurrencyTranslator |
translate |
static Currency |
ZXC |
NameInDB, TakerGetsCurrency, TakerGetsIssuer, TakerPaysCurrency, TakerPaysIssuer| 构造器和说明 |
|---|
Currency(byte[] bytes) |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
encodeCurrency(String currencyCode) |
boolean |
equals(Object obj) |
static Currency |
fromString(String currency) |
static String |
getCurrencyCodeFromTLCBytes(byte[] bytes) |
String |
humanCode() |
boolean |
isIOU() |
boolean |
isNative() |
byte[] |
toBytes() |
void |
toBytesSink(BytesSink to) |
String |
toHex() |
Object |
toJSON() |
String |
toString() |
hash160Field, typebytes, compareBytes, compareStartingAt, compareTo, get, hashCode, slice, slicepublic static final Currency NEUTRAL
public static final Currency ZXC
public Currency.Demurrage demurrage
public static Currency.CurrencyTranslator translate
public Object toJSON()
toJSON 在接口中 SerializedTypetoJSON 在类中 Hash160public byte[] toBytes()
toBytes 在接口中 SerializedTypetoBytes 在类中 Hash160public String toHex()
toHex 在接口中 SerializedTypetoHex 在类中 Hash160public void toBytesSink(BytesSink to)
toBytesSink 在接口中 SerializedTypetoBytesSink 在类中 Hash160public boolean isNative()
public boolean isIOU()
public String humanCode()
public static byte[] encodeCurrency(String currencyCode)
public static String getCurrencyCodeFromTLCBytes(byte[] bytes)
Copyright © 2021. All rights reserved.