Class SignatureCreationDateComparator
- java.lang.Object
-
- org.pgpainless.signature.consumer.SignatureCreationDateComparator
-
- All Implemented Interfaces:
java.util.Comparator<org.bouncycastle.openpgp.PGPSignature>
public class SignatureCreationDateComparator extends java.lang.Object implements java.util.Comparator<org.bouncycastle.openpgp.PGPSignature>
Comparator which can be used to sort signatures with regard to their creation time.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SignatureCreationDateComparator.Order
-
Field Summary
Fields Modifier and Type Field Description static SignatureCreationDateComparator.Order
DEFAULT_ORDER
-
Constructor Summary
Constructors Constructor Description SignatureCreationDateComparator()
Create a new comparator which sorts signatures old to new.SignatureCreationDateComparator(SignatureCreationDateComparator.Order order)
Create a new comparator which sorts signatures according to the passed ordering.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(org.bouncycastle.openpgp.PGPSignature one, org.bouncycastle.openpgp.PGPSignature two)
-
-
-
Field Detail
-
DEFAULT_ORDER
public static final SignatureCreationDateComparator.Order DEFAULT_ORDER
-
-
Constructor Detail
-
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
-
-