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:
Serialized Form
  • Constructor Details

  • Method Details

    • compare

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

      public boolean before​(POE poeOne, POE poeTwo)
      Checks if the poeOne is before the poetwo
      Parameters:
      poeOne - POE to check if it is before the poeTwo
      poeTwo - POE to compare with
      Returns:
      TRUE if the poeOne is before poeTwo, FALSE otherwise