Bouncy Castle Cryptography Library 1.87

org.bouncycastle.tsp.ers
Class SortedHashList

java.lang.Object
  extended byorg.bouncycastle.tsp.ers.SortedHashList

public class SortedHashList
extends java.lang.Object

A sorting list - byte[] are sorted in ascending order.


Constructor Summary
SortedHashList()
           
 
Method Summary
 void add(byte[] hash)
           
 byte[] getFirst()
           
 int size()
           
 java.util.List toList()
          Return the hashes added so far in ascending order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortedHashList

public SortedHashList()
Method Detail

getFirst

public byte[] getFirst()

add

public void add(byte[] hash)

size

public int size()

toList

public java.util.List toList()
Return the hashes added so far in ascending order.

The sort is stable, so hashes comparing equal come back in the order they were added in.

Returns:
a sorted list of the hashes added.

Bouncy Castle Cryptography Library 1.87