Class SessionInfo

java.lang.Object
org.jacoco.core.data.SessionInfo
All Implemented Interfaces:
Comparable<SessionInfo>

public class SessionInfo extends Object implements Comparable<SessionInfo>
Data object describing a session which was the source of execution data. SessionInfo instances can be sorted by dump date through the Comparable interface.
  • Field Details

    • id

      private final String id
    • start

      private final long start
    • dump

      private final long dump
  • Constructor Details

    • SessionInfo

      public SessionInfo(String id, long start, long dump)
      Create a immutable session info with the given data.
      Parameters:
      id - arbitrary session identifier, must not be null
      start - the epoc based time stamp when execution data recording has been started
      dump - the epoc based time stamp when execution data was collected
  • Method Details

    • getId

      public String getId()
      Returns:
      identifier for this session
    • getStartTimeStamp

      public long getStartTimeStamp()
      Returns:
      the epoc based time stamp when execution data recording has been started
    • getDumpTimeStamp

      public long getDumpTimeStamp()
      Returns:
      the epoc based time stamp when execution data was collected
    • compareTo

      public int compareTo(SessionInfo other)
      Specified by:
      compareTo in interface Comparable<SessionInfo>
    • toString

      public String toString()
      Overrides:
      toString in class Object