Class TimestampGenDateComparator

  • All Implemented Interfaces:
    java.util.Comparator<org.bouncycastle.tsp.TimeStampToken>

    public class TimestampGenDateComparator
    extends java.lang.Object
    implements java.util.Comparator<org.bouncycastle.tsp.TimeStampToken>

    Class used to sort a map of TimeStampToken objects by generation time.

    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

    Version:
    1.0, 04/08/2016.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(org.bouncycastle.tsp.TimeStampToken o1, org.bouncycastle.tsp.TimeStampToken o2)
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • TimestampGenDateComparator

        public TimestampGenDateComparator()
    • Method Detail

      • compare

        public final int compare​(org.bouncycastle.tsp.TimeStampToken o1,
                                 org.bouncycastle.tsp.TimeStampToken o2)
        Specified by:
        compare in interface java.util.Comparator<org.bouncycastle.tsp.TimeStampToken>
        See Also:
        Comparator.compare(java.lang.Object, java.lang.Object)