public class SortedHashList
extends java.lang.Object
| Constructor and Description |
|---|
SortedHashList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(byte[] hash) |
byte[] |
getFirst() |
int |
size() |
java.util.List<byte[]> |
toList()
Return the hashes added so far in ascending order.
|
public byte[] getFirst()
public void add(byte[] hash)
public int size()
public java.util.List<byte[]> toList()
The sort is stable, so hashes comparing equal come back in the order they were added in.