Package org.jacoco.core.data
Class SessionInfo
- java.lang.Object
-
- org.jacoco.core.data.SessionInfo
-
- All Implemented Interfaces:
java.lang.Comparable<SessionInfo>
public class SessionInfo extends java.lang.Object implements java.lang.Comparable<SessionInfo>
Data object describing a session which was the source of execution data.SessionInfoinstances can be sorted by dump date through theComparableinterface.
-
-
Constructor Summary
Constructors Constructor Description SessionInfo(java.lang.String id, long start, long dump)Create a immutable session info with the given data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SessionInfo other)longgetDumpTimeStamp()java.lang.StringgetId()longgetStartTimeStamp()java.lang.StringtoString()
-
-
-
Constructor Detail
-
SessionInfo
public SessionInfo(java.lang.String id, long start, long dump)Create a immutable session info with the given data.- Parameters:
id- arbitrary session identifier, must not benullstart- the epoc based time stamp when execution data recording has been starteddump- the epoc based time stamp when execution data was collected
-
-
Method Detail
-
getId
public java.lang.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:
compareToin interfacejava.lang.Comparable<SessionInfo>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-