Package io.perfmark.impl
Class MarkList
- java.lang.Object
-
- io.perfmark.impl.MarkList
-
public final class MarkList extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMarkList.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetMarkListId()The globally unique ID for this Mark list.java.util.List<Mark>getMarks()Returns the Marks associated with a given list.longgetThreadId()Thread IDs can be recycled, so this is not unique.java.lang.StringgetThreadName()Gets the Thread name of the thread that recorded the Marks.inthashCode()static MarkList.BuildernewBuilder()MarkList.BuildertoBuilder()java.lang.StringtoString()
-
-
-
Method Detail
-
newBuilder
public static MarkList.Builder newBuilder()
-
getMarks
public java.util.List<Mark> getMarks()
Returns the Marks associated with a given list.- Returns:
- the marks, in the order they were recorded.
-
getThreadName
public java.lang.String getThreadName()
Gets the Thread name of the thread that recorded the Marks.- Returns:
- the Thread name.
-
getThreadId
public long getThreadId()
Thread IDs can be recycled, so this is not unique.- Returns:
- the id of the thread, as returned by
Thread.getId().
-
getMarkListId
public long getMarkListId()
The globally unique ID for this Mark list. UnlikegetThreadId(), this value is never recycled.- Returns:
- the id of this list.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toBuilder
public MarkList.Builder toBuilder()
-
-