public abstract static class Hash.HashTranslator<T extends Hash> extends TypeTranslator<T>
| 构造器和说明 |
|---|
HashTranslator() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract int |
byteWidth() |
T |
fromParser(BinaryParser parser,
Integer hint) |
T |
fromString(String value) |
abstract T |
newInstance(byte[] b) |
void |
toBytesSink(T obj,
BytesSink to) |
Object |
toJSON(T obj) |
fromBoolean, fromBytes, fromDouble, fromHex, fromInteger, fromJSONArray, fromJSONObject, fromLong, fromParser, fromValue, toBoolean, toBytes, toDouble, toHex, toInteger, toJSONArray, toJSONObject, toLong, toStringpublic abstract T newInstance(byte[] b)
public abstract int byteWidth()
public T fromParser(BinaryParser parser, Integer hint)
fromParser 在类中 TypeTranslator<T extends Hash>parser - Parser.hint - Using a boxed integer, allowing null for no hintpublic T fromString(String value)
fromString 在类中 TypeTranslator<T extends Hash>public void toBytesSink(T obj, BytesSink to)
toBytesSink 在类中 TypeTranslator<T extends Hash>Copyright © 2021. All rights reserved.