Package com.vladsch.flexmark.util.format
Class TrackedOffsetList
- java.lang.Object
-
- com.vladsch.flexmark.util.format.TrackedOffsetList
-
- All Implemented Interfaces:
Iterable<TrackedOffset>,Collection<TrackedOffset>,List<TrackedOffset>
public class TrackedOffsetList extends Object implements List<TrackedOffset>
-
-
Field Summary
Fields Modifier and Type Field Description static TrackedOffsetListEMPTY_LIST
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, TrackedOffset element)booleanadd(TrackedOffset offset)booleanaddAll(int index, @NotNull Collection<? extends TrackedOffset> c)booleanaddAll(@NotNull Collection<? extends TrackedOffset> c)voidclear()booleancontains(Object o)booleancontainsAll(@NotNull Collection<?> c)static @NotNull TrackedOffsetListcreate(@NotNull com.vladsch.flexmark.util.sequence.BasedSequence baseSeq, @org.jetbrains.annotations.NotNull int[] offsets)static @NotNull TrackedOffsetListcreate(@NotNull com.vladsch.flexmark.util.sequence.BasedSequence baseSeq, @NotNull List<TrackedOffset> trackedOffsets)booleanequals(Object o)TrackedOffsetget(int index)@NotNull com.vladsch.flexmark.util.sequence.builder.tree.BasedOffsetTrackergetBasedOffsetTracker()@NotNull com.vladsch.flexmark.util.sequence.BasedSequencegetBaseSeq()@NotNull List<TrackedOffset>getTrackedOffsets()@NotNull TrackedOffsetListgetTrackedOffsets(int startOffset, int endOffset)@NotNull TrackedOffsetListgetUnresolvedOffsets()inthashCode()booleanhaveUnresolved()intindexOf(Object o)booleanisEmpty()@NotNull Iterator<TrackedOffset>iterator()intlastIndexOf(Object o)@NotNull ListIterator<TrackedOffset>listIterator()@NotNull ListIterator<TrackedOffset>listIterator(int index)TrackedOffsetremove(int index)booleanremove(Object o)booleanremoveAll(@NotNull Collection<?> c)voidreplaceAll(UnaryOperator<TrackedOffset> operator)booleanretainAll(@NotNull Collection<?> c)TrackedOffsetset(int index, TrackedOffset element)intsize()voidsort(Comparator<? super TrackedOffset> c)Spliterator<TrackedOffset>spliterator()@NotNull List<TrackedOffset>subList(int fromIndex, int toIndex)@NotNull Object[]toArray()<T> @NotNull T[]toArray(@NotNull T[] a)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Field Detail
-
EMPTY_LIST
public static TrackedOffsetList EMPTY_LIST
-
-
Method Detail
-
create
@NotNull public static @NotNull TrackedOffsetList create(@NotNull @NotNull com.vladsch.flexmark.util.sequence.BasedSequence baseSeq, @NotNull @NotNull List<TrackedOffset> trackedOffsets)
-
create
@NotNull public static @NotNull TrackedOffsetList create(@NotNull @NotNull com.vladsch.flexmark.util.sequence.BasedSequence baseSeq, @NotNull @org.jetbrains.annotations.NotNull int[] offsets)
-
getUnresolvedOffsets
@NotNull public @NotNull TrackedOffsetList getUnresolvedOffsets()
-
haveUnresolved
public boolean haveUnresolved()
-
getBaseSeq
@NotNull public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence getBaseSeq()
-
getTrackedOffsets
@NotNull public @NotNull List<TrackedOffset> getTrackedOffsets()
-
getBasedOffsetTracker
@NotNull public @NotNull com.vladsch.flexmark.util.sequence.builder.tree.BasedOffsetTracker getBasedOffsetTracker()
-
getTrackedOffsets
@NotNull public @NotNull TrackedOffsetList getTrackedOffsets(int startOffset, int endOffset)
-
add
public boolean add(TrackedOffset offset)
- Specified by:
addin interfaceCollection<TrackedOffset>- Specified by:
addin interfaceList<TrackedOffset>
-
set
public TrackedOffset set(int index, TrackedOffset element)
- Specified by:
setin interfaceList<TrackedOffset>
-
add
public void add(int index, TrackedOffset element)- Specified by:
addin interfaceList<TrackedOffset>
-
remove
public TrackedOffset remove(int index)
- Specified by:
removein interfaceList<TrackedOffset>
-
addAll
public boolean addAll(@NotNull @NotNull Collection<? extends TrackedOffset> c)- Specified by:
addAllin interfaceCollection<TrackedOffset>- Specified by:
addAllin interfaceList<TrackedOffset>
-
addAll
public boolean addAll(int index, @NotNull @NotNull Collection<? extends TrackedOffset> c)- Specified by:
addAllin interfaceList<TrackedOffset>
-
removeAll
public boolean removeAll(@NotNull @NotNull Collection<?> c)- Specified by:
removeAllin interfaceCollection<TrackedOffset>- Specified by:
removeAllin interfaceList<TrackedOffset>
-
retainAll
public boolean retainAll(@NotNull @NotNull Collection<?> c)- Specified by:
retainAllin interfaceCollection<TrackedOffset>- Specified by:
retainAllin interfaceList<TrackedOffset>
-
replaceAll
public void replaceAll(UnaryOperator<TrackedOffset> operator)
- Specified by:
replaceAllin interfaceList<TrackedOffset>
-
sort
public void sort(Comparator<? super TrackedOffset> c)
- Specified by:
sortin interfaceList<TrackedOffset>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<TrackedOffset>- Specified by:
clearin interfaceList<TrackedOffset>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<TrackedOffset>- Specified by:
removein interfaceList<TrackedOffset>
-
size
public int size()
- Specified by:
sizein interfaceCollection<TrackedOffset>- Specified by:
sizein interfaceList<TrackedOffset>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<TrackedOffset>- Specified by:
isEmptyin interfaceList<TrackedOffset>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<TrackedOffset>- Specified by:
containsin interfaceList<TrackedOffset>
-
iterator
@NotNull public @NotNull Iterator<TrackedOffset> iterator()
- Specified by:
iteratorin interfaceCollection<TrackedOffset>- Specified by:
iteratorin interfaceIterable<TrackedOffset>- Specified by:
iteratorin interfaceList<TrackedOffset>
-
toArray
@NotNull public @NotNull Object[] toArray()
- Specified by:
toArrayin interfaceCollection<TrackedOffset>- Specified by:
toArrayin interfaceList<TrackedOffset>
-
toArray
@NotNull public <T> @NotNull T[] toArray(@NotNull @NotNull T[] a)- Specified by:
toArrayin interfaceCollection<TrackedOffset>- Specified by:
toArrayin interfaceList<TrackedOffset>
-
containsAll
public boolean containsAll(@NotNull @NotNull Collection<?> c)- Specified by:
containsAllin interfaceCollection<TrackedOffset>- Specified by:
containsAllin interfaceList<TrackedOffset>
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceCollection<TrackedOffset>- Specified by:
equalsin interfaceList<TrackedOffset>- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection<TrackedOffset>- Specified by:
hashCodein interfaceList<TrackedOffset>- Overrides:
hashCodein classObject
-
get
public TrackedOffset get(int index)
- Specified by:
getin interfaceList<TrackedOffset>
-
indexOf
public int indexOf(Object o)
- Specified by:
indexOfin interfaceList<TrackedOffset>
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<TrackedOffset>
-
listIterator
@NotNull public @NotNull ListIterator<TrackedOffset> listIterator()
- Specified by:
listIteratorin interfaceList<TrackedOffset>
-
listIterator
@NotNull public @NotNull ListIterator<TrackedOffset> listIterator(int index)
- Specified by:
listIteratorin interfaceList<TrackedOffset>
-
subList
@NotNull public @NotNull List<TrackedOffset> subList(int fromIndex, int toIndex)
- Specified by:
subListin interfaceList<TrackedOffset>
-
spliterator
public Spliterator<TrackedOffset> spliterator()
- Specified by:
spliteratorin interfaceCollection<TrackedOffset>- Specified by:
spliteratorin interfaceIterable<TrackedOffset>- Specified by:
spliteratorin interfaceList<TrackedOffset>
-
-