Class MarkList
- All Implemented Interfaces:
Iterable<Mark>, Collection<Mark>, List<Mark>, SequencedCollection<Mark>
MarkList is collection of Marks, in the order they were recorded.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) longThe globally unique ID for the MarkRecorder that recorded this list.longThread IDs can be recycled, so this is not unique.Gets the Thread name of the thread that recorded the Marks.inthashCode()static MarkList.Builderintsize()toString()Methods inherited from class AbstractList
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Field Details
-
marks
-
threadId
private final long threadId -
markRecorderId
private final long markRecorderId -
threadName
-
-
Constructor Details
-
MarkList
MarkList(MarkList.Builder builder)
-
-
Method Details
-
newBuilder
-
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().
-
getMarkRecorderId
public long getMarkRecorderId()The globally unique ID for the MarkRecorder that recorded this list. UnlikegetThreadId(), this value is never recycled.- Returns:
- the id of this Mark Holder.
-
get
-
equals
- Specified by:
equalsin interfaceCollection<Mark>- Specified by:
equalsin interfaceList<Mark>- Overrides:
equalsin classAbstractList<Mark>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<Mark>- Specified by:
hashCodein interfaceList<Mark>- Overrides:
hashCodein classAbstractList<Mark>
-
size
public int size()- Specified by:
sizein interfaceCollection<Mark>- Specified by:
sizein interfaceList<Mark>- Specified by:
sizein classAbstractCollection<Mark>
-
toString
- Overrides:
toStringin classAbstractCollection<Mark>
-
toBuilder
-