Package io.perfmark.impl
Class MarkList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<Mark>
-
- io.perfmark.impl.MarkList
-
-
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)Markget(int index)longgetMarkListId()The globally unique ID for this Mark 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()intsize()MarkList.BuildertoBuilder()java.lang.StringtoString()-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
-
-
-
-
Method Detail
-
newBuilder
public static MarkList.Builder newBuilder()
-
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.
-
get
public Mark get(int index)
-
equals
public boolean equals(java.lang.Object obj)
-
hashCode
public int hashCode()
-
size
public int size()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.util.AbstractCollection<Mark>
-
toBuilder
public MarkList.Builder toBuilder()
-
-