Bouncy Castle Cryptography Library 1.87

org.bouncycastle.tsp.ers
Class SortedIndexedHashList

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

public class SortedIndexedHashList
extends java.lang.Object

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


Constructor Summary
SortedIndexedHashList()
           
 
Method Summary
 void add(org.bouncycastle.tsp.ers.IndexedHash hash)
           
 org.bouncycastle.tsp.ers.IndexedHash getFirst()
           
 int size()
           
 java.util.List toList()
          Return the hashes added so far in ascending order of digest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortedIndexedHashList

public SortedIndexedHashList()
Method Detail

getFirst

public org.bouncycastle.tsp.ers.IndexedHash getFirst()

add

public void add(org.bouncycastle.tsp.ers.IndexedHash hash)

size

public int size()

toList

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

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