Package io.perfmark.impl
Class MarkList.Builder
- java.lang.Object
-
- io.perfmark.impl.MarkList.Builder
-
- Enclosing class:
- MarkList
public static final class MarkList.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarkListbuild()MarkList.BuildersetMarkListId(long markListId)Sets the mark list ID for this MarkList builder.MarkList.BuildersetMarks(java.util.List<Mark> marks)Sets the marks for this MarkList builder.MarkList.BuildersetThreadId(long threadId)Sets the thread ID for this MarkList builder.MarkList.BuildersetThreadName(java.lang.String threadName)Sets the thread name for this MarkList builder.
-
-
-
Method Detail
-
build
public MarkList build()
-
setMarks
public MarkList.Builder setMarks(java.util.List<Mark> marks)
Sets the marks for this MarkList builder.- Parameters:
marks- the marks to set.- Returns:
- this
- Throws:
java.lang.NullPointerException- if any element in this list isnull.
-
setThreadName
public MarkList.Builder setThreadName(java.lang.String threadName)
Sets the thread name for this MarkList builder.- Parameters:
threadName- the Thread Name- Returns:
- this
-
setThreadId
public MarkList.Builder setThreadId(long threadId)
Sets the thread ID for this MarkList builder.- Parameters:
threadId- the Thread Id- Returns:
- this
-
setMarkListId
public MarkList.Builder setMarkListId(long markListId)
Sets the mark list ID for this MarkList builder.- Parameters:
markListId- the mark list ID- Returns:
- this
-
-