java.lang.Object
eu.europa.esig.dss.validation.process.vpfswatsp.POEComparator
All Implemented Interfaces:
Serializable, Comparator<POE>

public class POEComparator extends Object implements Comparator<POE>, Serializable
The class compares two POE instances, by its production time, origin and covered context The class returns the following values: -1 if the poe1 is preferred over poe2 0 of the POEs are equal 1 if the poe2 is preferred over poe1
See Also:
  • Constructor Details

    • POEComparator

      public POEComparator()
      Default constructor
  • Method Details

    • compare

      public int compare(POE poe1, POE poe2)
      Specified by:
      compare in interface Comparator<POE>
    • before

      public boolean before(POE poe1, POE poe2)
      Checks if the poe1 is before the poe2
      Parameters:
      poe1 - POE to check if it is before the poe2
      poe2 - POE to compare with
      Returns:
      TRUE if the poe1 is before poe2, FALSE otherwise