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 int
private final @NotNull BitSet
-
Constructor Summary
ConstructorsConstructorDescriptionOrderedSet
(int capacity) OrderedSet
(int capacity, @Nullable CollectionHost<E> host) OrderedSet
(@NotNull CollectionHost<E> host) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
addAll
(@NotNull Collection<? extends E> collection) void
addNull()
void
addNulls
(int index) void
clear()
boolean
boolean
containsAll
(@NotNull Collection<?> collection) @NotNull BitSet
differenceBitSet
(@NotNull Iterable<? extends E> items) @NotNull BitSet
differenceBitSet
(@NotNull Iterator<? extends E> items) boolean
(package private) int
int
@NotNull BitSet
getValue
(int index) getValueOrNull
(int index) int
hashCode()
static <T1> T1
ifNull
(T1 o, T1 nullValue) @NotNull BitSet
indexBitSet
(@NotNull Iterable<? extends E> items) @NotNull ReversibleIterable
<Integer> @NotNull ReversibleIterator
<Integer> int
boolean
boolean
isEmpty()
boolean
isSparse()
boolean
isValidIndex
(int index) @NotNull ReversibleIterable
<E> iterable()
@NotNull ReversibleIndexedIterator
<E> iterator()
@NotNull BitSet
keyDifferenceBitSet
(@NotNull Iterable<? extends Map.Entry<? extends E, ?>> items) @NotNull BitSet
keyDifferenceBitSet
(@NotNull Iterator<? extends Map.Entry<? extends E, ?>> items) boolean
boolean
removeAll
(@NotNull Collection<?> collection) @Nullable Object
removeHosted
(@Nullable Object o) boolean
removeIndex
(int index) removeIndexHosted
(int index) boolean
retainAll
(@NotNull Collection<?> collection) @NotNull ReversibleIterable
<Integer> @NotNull ReversibleIterator
<Integer> @NotNull ReversibleIterable
<E> @NotNull ReversibleIndexedIterator
<E> boolean
setValueAt
(int index, E value, @Nullable Object o) int
size()
@NotNull Object[]
toArray()
<T> T[]
toArray
(T[] array) void
validateIndex
(int index) @NotNull BitSet
valueDifferenceBitSet
(@NotNull Iterable<? extends Map.Entry<?, ? extends E>> items) @NotNull BitSet
valueDifferenceBitSet
(@NotNull Iterator<? extends Map.Entry<?, ? extends E>> items) 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
-
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
public int size() -
isEmpty
public boolean 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
@NotNull public <T> T[] toArray(@NotNull T[] array) -
add
-
add
-
removeIndex
public boolean removeIndex(int index) -
removeIndexHosted
-
remove
-
removeHosted
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceSet<E>
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear() -
equals
-
hashCode
public int hashCode() -
getValidIndices
-