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.SessionInfo
instances can be sorted by dump date through theComparable
interface.
-
-
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 int
compareTo(SessionInfo other)
long
getDumpTimeStamp()
java.lang.String
getId()
long
getStartTimeStamp()
java.lang.String
toString()
-
-
-
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 benull
start
- 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:
compareTo
in interfacejava.lang.Comparable<SessionInfo>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-