Class MarkList.Builder

  • Enclosing class:
    MarkList

    public static final class MarkList.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setMarks

        public MarkList.Builder setMarks​(java.util.List<Mark> marks)
        Sets the marks for this MarkList builder. This method always makes a defensive copy. This method never retains a reference to the list.
        Parameters:
        marks - the marks to set.
        Returns:
        this
        Throws:
        java.lang.NullPointerException - if any element in this list is null.
      • 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
      • setMarkRecorderId

        public MarkList.Builder setMarkRecorderId​(long markRecorderId)
        Sets the MarkRecorder ID for this MarkList builder.
        Parameters:
        markRecorderId - the MarkRecorder ID
        Returns:
        this