public class BlockId extends Sha256Hash
LENGTH, ZERO_HASH| Constructor and Description |
|---|
BlockId() |
BlockId(byte[] hash,
long num) |
BlockId(com.google.protobuf.ByteString hash,
long num) |
BlockId(Sha256Hash blockId) |
BlockId(Sha256Hash hash,
long num)
Use
Sha256Hash.wrap(byte[]) instead. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Sha256Hash other) |
boolean |
equals(java.lang.Object o) |
long |
getNum() |
java.lang.String |
getString() |
int |
hashCode()
Returns the last four bytes of the wrapped hash.
|
java.lang.String |
toString() |
create, createDouble, getBytes, getByteString, hash, hash, hashTwice, hashTwice, hashTwice, newDigest, newSM3Digest, of, of, toBigInteger, twiceOf, wrap, wrappublic BlockId()
public BlockId(Sha256Hash blockId)
public BlockId(Sha256Hash hash, long num)
Sha256Hash.wrap(byte[]) instead.public BlockId(byte[] hash,
long num)
public BlockId(com.google.protobuf.ByteString hash,
long num)
public boolean equals(java.lang.Object o)
equals in class Sha256Hashpublic java.lang.String getString()
public java.lang.String toString()
toString in class Sha256Hashpublic int hashCode()
Sha256HashhashCode in class Sha256Hashpublic int compareTo(Sha256Hash other)
compareTo in interface java.lang.Comparable<Sha256Hash>compareTo in class Sha256Hashpublic long getNum()