Class SortedHashList

java.lang.Object
org.bouncycastle.tsp.ers.SortedHashList

public class SortedHashList extends Object
A sorting list - byte[] are sorted in ascending order.
  • Constructor Details

    • SortedHashList

      public SortedHashList()
  • Method Details

    • getFirst

      public byte[] getFirst()
    • add

      public void add(byte[] hash)
    • size

      public int size()
    • toList

      public List<byte[]> 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.