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) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
bytes() |
int |
compareBytes(byte[] thisBytes,
byte[] bytes,
int start,
int numBytes) |
int |
compareStartingAt(Subclass another,
int start) |
int |
compareTo(Subclass another) |
boolean |
equals(Object obj) |
byte |
get(int i) |
int |
hashCode() |
byte[] |
slice(int start) |
byte[] |
slice(int start,
int end) |
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)
public int compareBytes(byte[] thisBytes,
byte[] bytes,
int start,
int numBytes)
public byte[] slice(int start)
public byte get(int i)
public byte[] slice(int start,
int end)
Copyright © 2021. All rights reserved.