public final class BlockLocator
extends java.lang.Object
| Constructor and Description |
|---|
BlockLocator() |
BlockLocator(com.google.common.collect.ImmutableList<Sha256Hash> hashes)
Creates a Block locator with defined list of hashes.
|
| Modifier and Type | Method and Description |
|---|---|
BlockLocator |
add(Sha256Hash hash)
Add a
Sha256Hash to a newly created block locator. |
boolean |
equals(java.lang.Object o) |
Sha256Hash |
get(int i)
Get hash by index from this block locator.
|
java.util.List<Sha256Hash> |
getHashes()
Returns List of Block locator hashes.
|
int |
hashCode() |
int |
size()
Returns the number of hashes in this block locator.
|
java.lang.String |
toString() |
public BlockLocator()
public BlockLocator(com.google.common.collect.ImmutableList<Sha256Hash> hashes)
public BlockLocator add(Sha256Hash hash)
Sha256Hash to a newly created block locator.public int size()
public java.util.List<Sha256Hash> getHashes()
public Sha256Hash get(int i)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object