Package org.jacoco.core.data
Class SessionInfo
java.lang.Object
org.jacoco.core.data.SessionInfo
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSessionInfo
(String id, long start, long dump) Create a immutable session info with the given data. -
Method Summary
-
Field Details
-
id
-
start
private final long start -
dump
private final long dump
-
-
Constructor Details
-
SessionInfo
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 Details
-
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
- Specified by:
compareTo
in interfaceComparable<SessionInfo>
-
toString
-