Class OrderedSet<E>
java.lang.Object
com.vladsch.flexmark.util.collection.OrderedSet<E>
- All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable CollectionHost<E> private intprivate final @NotNull BitSet -
Constructor Summary
ConstructorsConstructorDescriptionOrderedSet(int capacity) OrderedSet(int capacity, @Nullable CollectionHost<E> host) OrderedSet(@NotNull CollectionHost<E> host) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanaddAll(@NotNull Collection<? extends E> collection) voidaddNull()voidaddNulls(int index) voidclear()booleanbooleancontainsAll(@NotNull Collection<?> collection) @NotNull BitSetdifferenceBitSet(@NotNull Iterable<? extends E> items) @NotNull BitSetdifferenceBitSet(@NotNull Iterator<? extends E> items) boolean(package private) intint@NotNull BitSetgetValue(int index) getValueOrNull(int index) inthashCode()static <T1> T1ifNull(T1 o, T1 nullValue) @NotNull BitSetindexBitSet(@NotNull Iterable<? extends E> items) @NotNull ReversibleIterable<Integer> @NotNull ReversibleIterator<Integer> intbooleanbooleanisEmpty()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) booleanbooleanremoveAll(@NotNull Collection<?> collection) @Nullable ObjectremoveHosted(@Nullable Object o) booleanremoveIndex(int index) removeIndexHosted(int index) booleanretainAll(@NotNull Collection<?> collection) @NotNull ReversibleIterable<Integer> @NotNull ReversibleIterator<Integer> @NotNull ReversibleIterable<E> @NotNull ReversibleIndexedIterator<E> booleansetValueAt(int index, E value, @Nullable Object o) intsize()@NotNull Object[]toArray()<T> T[]toArray(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) values()Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface Set
spliterator
-
Field Details
-
keyMap
-
valueList
-
host
-
indexedProxy
-
allowConcurrentModsIndexedProxy
-
validIndices
-
modificationCount
private int modificationCount
-
-
Constructor Details
-
OrderedSet
public OrderedSet() -
OrderedSet
public OrderedSet(int capacity) -
OrderedSet
-
OrderedSet
-
-
Method Details
-
indexBitSet
-
differenceBitSet
-
differenceBitSet
-
keyDifferenceBitSet
-
keyDifferenceBitSet
-
valueDifferenceBitSet
-
valueDifferenceBitSet
-
getIndexedProxy
-
getConcurrentModsIndexedProxy
-
getModificationCount
public int getModificationCount() -
getIteratorModificationCount
int getIteratorModificationCount() -
ifNull
public static <T1> T1 ifNull(T1 o, T1 nullValue) -
inHostUpdate
public boolean inHostUpdate() -
indexOf
-
isValidIndex
public boolean isValidIndex(int index) -
validateIndex
public void validateIndex(int index) -
getValue
-
getValueOrNull
-
size
-
isEmpty
-
contains
-
getValueList
-
values
-
setValueAt
-
isSparse
public boolean isSparse() -
addNull
public void addNull() -
addNulls
public void addNulls(int index) -
indexIterator
-
reversedIndexIterator
-
indexIterable
-
reversedIndexIterable
-
iterator
-
reversedIterator
-
iterable
-
reversedIterable
-
toArray
-
toArray
-
add
-
add
-
removeIndex
public boolean removeIndex(int index) -
removeIndexHosted
-
remove
-
removeHosted
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>
-
addAll
-
retainAll
-
removeAll
-
clear
-
equals
-
hashCode
-
getValidIndices
-