Class Gem5Wrapper.SortByCommandTime

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<RecordToken>
    Enclosing class:
    Gem5Wrapper

    public static class Gem5Wrapper.SortByCommandTime
    extends java.lang.Object
    implements java.util.Comparator<RecordToken>, java.io.Serializable
    Sort by the difference between the command times.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(RecordToken t1, RecordToken t2)
      Return the difference between time 1 and time2.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, 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

      • SortByCommandTime

        public SortByCommandTime()
    • Method Detail

      • compare

        public int compare​(RecordToken t1,
                           RecordToken t2)
        Return the difference between time 1 and time2.
        Specified by:
        compare in interface java.util.Comparator<RecordToken>
        Parameters:
        t1 - The record token containing the first time.
        t2 - The record token containing the first time.
        Returns:
        The difference between the two times.