Class SignatureCreationDateComparator

java.lang.Object
org.pgpainless.signature.consumer.SignatureCreationDateComparator
All Implemented Interfaces:
Comparator<org.bouncycastle.openpgp.PGPSignature>

public class SignatureCreationDateComparator extends Object implements Comparator<org.bouncycastle.openpgp.PGPSignature>
Comparator which can be used to sort signatures with regard to their creation time.
  • Field Details

  • Constructor Details

    • SignatureCreationDateComparator

      public SignatureCreationDateComparator()
      Create a new comparator which sorts signatures old to new.
    • SignatureCreationDateComparator

      public SignatureCreationDateComparator(SignatureCreationDateComparator.Order order)
      Create a new comparator which sorts signatures according to the passed ordering.
      Parameters:
      order - ordering
  • Method Details

    • compare

      public int compare(org.bouncycastle.openpgp.PGPSignature one, org.bouncycastle.openpgp.PGPSignature two)
      Specified by:
      compare in interface Comparator<org.bouncycastle.openpgp.PGPSignature>