Class OrderedSet<E>
- java.lang.Object
-
- com.vladsch.flexmark.util.collection.OrderedSet<E>
-
-
Constructor Summary
Constructors Constructor Description OrderedSet()OrderedSet(int capacity)OrderedSet(int capacity, @Nullable CollectionHost<E> host)OrderedSet(@NotNull CollectionHost<E> host)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E e)booleanadd(E e, @Nullable Object o)booleanaddAll(@NotNull Collection<? extends E> collection)voidaddNull()voidaddNulls(int index)voidclear()booleancontains(@Nullable Object o)booleancontainsAll(@NotNull Collection<?> collection)@NotNull BitSetdifferenceBitSet(@NotNull Iterable<? extends E> items)@NotNull BitSetdifferenceBitSet(@NotNull Iterator<? extends E> items)booleanequals(Object o)@NotNull Indexed<E>getConcurrentModsIndexedProxy()@NotNull Indexed<E>getIndexedProxy()intgetModificationCount()@NotNull BitSetgetValidIndices()EgetValue(int index)@NotNull List<E>getValueList()EgetValueOrNull(int index)inthashCode()static <T1> T1ifNull(T1 o, T1 nullValue)@NotNull BitSetindexBitSet(@NotNull Iterable<? extends E> items)@NotNull ReversibleIterable<Integer>indexIterable()@NotNull ReversibleIterator<Integer>indexIterator()intindexOf(@Nullable Object element)booleaninHostUpdate()booleanisEmpty()booleanisSparse()booleanisValidIndex(int index)@NotNull ReversibleIterable<E>iterable()@NotNull ReversibleIndexedIterator<E>iterator()@NotNull BitSetkeyDifferenceBitSet(@NotNull Iterable<? extends Map.Entry<? extends E,?>> items)@NotNull BitSetkeyDifferenceBitSet(@NotNull Iterator<? extends Map.Entry<? extends E,?>> items)booleanremove(@Nullable Object o)booleanremoveAll(@NotNull Collection<?> collection)@Nullable ObjectremoveHosted(@Nullable Object o)booleanremoveIndex(int index)ObjectremoveIndexHosted(int index)booleanretainAll(@NotNull Collection<?> collection)@NotNull ReversibleIterable<Integer>reversedIndexIterable()@NotNull ReversibleIterator<Integer>reversedIndexIterator()@NotNull ReversibleIterable<E>reversedIterable()@NotNull ReversibleIndexedIterator<E>reversedIterator()booleansetValueAt(int index, E value, @Nullable Object o)intsize()@NotNull Object[]toArray()<T> @NotNull T[]toArray(@NotNull T[] array)voidvalidateIndex(int index)@NotNull BitSetvalueDifferenceBitSet(@NotNull Iterable<? extends Map.Entry<?,? extends E>> items)@NotNull BitSetvalueDifferenceBitSet(@NotNull Iterator<? extends Map.Entry<?,? extends E>> items)@NotNull List<E>values()-
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
-
Methods inherited from interface java.util.Set
spliterator
-
-
-
-
Constructor Detail
-
OrderedSet
public OrderedSet()
-
OrderedSet
public OrderedSet(int capacity)
-
OrderedSet
public OrderedSet(@NotNull @NotNull CollectionHost<E> host)
-
OrderedSet
public OrderedSet(int capacity, @Nullable @Nullable CollectionHost<E> host)
-
-
Method Detail
-
indexBitSet
@NotNull public @NotNull BitSet indexBitSet(@NotNull @NotNull Iterable<? extends E> items)
-
differenceBitSet
@NotNull public @NotNull BitSet differenceBitSet(@NotNull @NotNull Iterable<? extends E> items)
-
differenceBitSet
@NotNull public @NotNull BitSet differenceBitSet(@NotNull @NotNull Iterator<? extends E> items)
-
keyDifferenceBitSet
@NotNull public @NotNull BitSet keyDifferenceBitSet(@NotNull @NotNull Iterable<? extends Map.Entry<? extends E,?>> items)
-
keyDifferenceBitSet
@NotNull public @NotNull BitSet keyDifferenceBitSet(@NotNull @NotNull Iterator<? extends Map.Entry<? extends E,?>> items)
-
valueDifferenceBitSet
@NotNull public @NotNull BitSet valueDifferenceBitSet(@NotNull @NotNull Iterable<? extends Map.Entry<?,? extends E>> items)
-
valueDifferenceBitSet
@NotNull public @NotNull BitSet valueDifferenceBitSet(@NotNull @NotNull Iterator<? extends Map.Entry<?,? extends E>> items)
-
getModificationCount
public int getModificationCount()
-
ifNull
public static <T1> T1 ifNull(T1 o, T1 nullValue)
-
inHostUpdate
public boolean inHostUpdate()
-
indexOf
public int indexOf(@Nullable @Nullable Object element)
-
isValidIndex
public boolean isValidIndex(int index)
-
validateIndex
public void validateIndex(int index)
-
getValue
@Nullable public E getValue(int index)
-
getValueOrNull
@Nullable public E getValueOrNull(int index)
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(@Nullable @Nullable Object o)
-
isSparse
public boolean isSparse()
-
addNull
public void addNull()
-
addNulls
public void addNulls(int index)
-
indexIterator
@NotNull public @NotNull ReversibleIterator<Integer> indexIterator()
-
reversedIndexIterator
@NotNull public @NotNull ReversibleIterator<Integer> reversedIndexIterator()
-
indexIterable
@NotNull public @NotNull ReversibleIterable<Integer> indexIterable()
-
reversedIndexIterable
@NotNull public @NotNull ReversibleIterable<Integer> reversedIndexIterable()
-
iterator
@NotNull public @NotNull ReversibleIndexedIterator<E> iterator()
-
reversedIterator
@NotNull public @NotNull ReversibleIndexedIterator<E> reversedIterator()
-
iterable
@NotNull public @NotNull ReversibleIterable<E> iterable()
-
reversedIterable
@NotNull public @NotNull ReversibleIterable<E> reversedIterable()
-
toArray
@NotNull public @NotNull Object[] toArray()
-
toArray
@NotNull public <T> @NotNull T[] toArray(@NotNull @NotNull T[] array)
-
add
public boolean add(@Nullable E e)
-
removeIndex
public boolean removeIndex(int index)
-
removeIndexHosted
public Object removeIndexHosted(int index)
-
remove
public boolean remove(@Nullable @Nullable Object o)
-
containsAll
public boolean containsAll(@NotNull @NotNull Collection<?> collection)- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>
-
addAll
public boolean addAll(@NotNull @NotNull Collection<? extends E> collection)
-
retainAll
public boolean retainAll(@NotNull @NotNull Collection<?> collection)
-
removeAll
public boolean removeAll(@NotNull @NotNull Collection<?> collection)
-
clear
public void clear()
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
getValidIndices
@NotNull public @NotNull BitSet getValidIndices()
-
-