Class MarkList

  • All Implemented Interfaces:
    java.lang.Iterable<Mark>, java.util.Collection<Mark>, java.util.List<Mark>

    public final class MarkList
    extends java.util.AbstractList<Mark>
    MarkList is collection of Marks, in the order they were recorded.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  MarkList.Builder  
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      Mark get​(int index)  
      long getMarkListId()
      The globally unique ID for this Mark list.
      long getThreadId()
      Thread IDs can be recycled, so this is not unique.
      java.lang.String getThreadName()
      Gets the Thread name of the thread that recorded the Marks.
      int hashCode()  
      static MarkList.Builder newBuilder()  
      int size()  
      MarkList.Builder toBuilder()  
      java.lang.String toString()  
      • 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
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
    • Method Detail

      • 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. Unlike getThreadId(), this value is never recycled.
        Returns:
        the id of this list.
      • get

        public Mark get​(int index)
        Specified by:
        get in interface java.util.List<Mark>
        Specified by:
        get in class java.util.AbstractList<Mark>
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface java.util.Collection<Mark>
        Specified by:
        equals in interface java.util.List<Mark>
        Overrides:
        equals in class java.util.AbstractList<Mark>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<Mark>
        Specified by:
        hashCode in interface java.util.List<Mark>
        Overrides:
        hashCode in class java.util.AbstractList<Mark>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<Mark>
        Specified by:
        size in interface java.util.List<Mark>
        Specified by:
        size in class java.util.AbstractCollection<Mark>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.AbstractCollection<Mark>