public abstract class Hash<Subclass extends Hash> extends Object implements SerializedType, Comparable<Subclass>
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Hash.HashTranslator<T extends Hash> |
| 构造器和说明 |
|---|
Hash(byte[] bytes,
int size)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
bytes()
Get hash bytes.
|
int |
compareBytes(byte[] thisBytes,
byte[] bytes,
int start,
int numBytes)
compareBytes
|
int |
compareStartingAt(Subclass another,
int start)
compareStartingAt
|
int |
compareTo(Subclass another) |
boolean |
equals(Object obj) |
byte |
get(int i)
Get i.
|
int |
hashCode() |
byte[] |
slice(int start)
Slice.
|
byte[] |
slice(int start,
int end)
Slice an array.
|
String |
toString() |
toBytes, toBytesSink, toHex, toJSON, typepublic byte[] bytes()
public int compareTo(Subclass another)
compareTo 在接口中 Comparable<Subclass extends Hash>public int compareStartingAt(Subclass another, int start)
another - another.start - start.public int compareBytes(byte[] thisBytes,
byte[] bytes,
int start,
int numBytes)
thisBytes - thisBytes.bytes - bytes.start - start.numBytes - number of bytes.public byte[] slice(int start)
start - Start.public byte get(int i)
i - index.public byte[] slice(int start,
int end)
start - start indexend - End index.Copyright © 2021. All rights reserved.