Class CAdESAttributeOrderComparator
java.lang.Object
eu.europa.esig.dss.cades.validation.CAdESAttributeOrderComparator
- All Implemented Interfaces:
Serializable,Comparator<CAdESAttribute>
public class CAdESAttributeOrderComparator
extends Object
implements Comparator<CAdESAttribute>, Serializable
The class is used to compare order and only original order of
CAdESAttributes from an AttributeTable
Class checks the production time of timestamps and their covered data
The method compare() returns
-1 if the attributeOne has original order before attributeTwo
0 if attributes have the same order (should not happen)
1 if the attributeOne has original order after attributeTwo
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(CAdESAttribute attributeOne, CAdESAttribute attributeTwo) 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
-
CAdESAttributeOrderComparator
public CAdESAttributeOrderComparator()Default constructor
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<CAdESAttribute>
-