Package eu.europa.esig.dss.cades
Class EvidenceRecordProductionComparator
java.lang.Object
eu.europa.esig.dss.cades.EvidenceRecordProductionComparator
- All Implemented Interfaces:
Serializable,Comparator<org.bouncycastle.asn1.tsp.EvidenceRecord>
public class EvidenceRecordProductionComparator
extends Object
implements Comparator<org.bouncycastle.asn1.tsp.EvidenceRecord>, Serializable
The class is used to compare production time of
org.bouncycastle.asn1.tsp.EvidenceRecords
Class checks the generation time of evidence records
The method compare() returns
-1 if the evidenceRecordOne was created before evidenceRecordTwo
0 if EvidenceRecord's were created at the same time
1 if the evidenceRecordOne was created after evidenceRecordTwo
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(org.bouncycastle.asn1.tsp.EvidenceRecord evidenceRecordOne, org.bouncycastle.asn1.tsp.EvidenceRecord evidenceRecordTwo) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
EvidenceRecordProductionComparator
public EvidenceRecordProductionComparator()Default constructor
-
-
Method Details
-
compare
public int compare(org.bouncycastle.asn1.tsp.EvidenceRecord evidenceRecordOne, org.bouncycastle.asn1.tsp.EvidenceRecord evidenceRecordTwo) - Specified by:
comparein interfaceComparator<org.bouncycastle.asn1.tsp.EvidenceRecord>
-