| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private @Nullable Indexed | |
| private final @Nullable CollectionHost | |
| private @Nullable Indexed | |
| private final @NotNull HashMap | |
| private int | |
| private final @NotNull BitSet | |
| pack-priv final @NotNull ArrayList |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(E
element to be added to this set e)Implements java. Adds the specified element to this set if it is not already present (optional operation). |
| public boolean | |
| public boolean | addAll(@NotNull Collection<? extends E>
collection containing elements to be added to this set collection)Implements java. Adds all of the elements in the specified collection to this set if they're not already present (optional operation). |
| public void | |
| public void | |
| public void | clear()
Implements java. Removes all of the elements from this set (optional operation). |
| public boolean | contains(@Nullable Object
element whose presence in this set is to be tested o)Implements java. Returns |
| public boolean | containsAll(@NotNull Collection<?>
collection to be checked for containment in this set collection)Implements java. Returns |
| public @NotNull BitSet | |
| public @NotNull BitSet | |
| public boolean | equals(Object
object to be compared for equality with this set o)Overrides java. Implements java. Compares the specified object with this set for equality. |
| public @NotNull Indexed | |
| public @NotNull Indexed | |
| pack-priv int | |
| public int | |
| public @NotNull BitSet | |
| public E | |
| public @NotNull List | |
| public E | |
| public int | hashCode()
Overrides java. Implements java. Returns the hash code value for this set. |
| public static <T1> T1 | |
| public @NotNull BitSet | |
| public @NotNull ReversibleIterable | |
| public @NotNull ReversibleIterator | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public @NotNull ReversibleIterable | |
| public @NotNull ReversibleIndexedIterator | iterator()
Implements java. Returns an iterator over the elements in this set. |
| public @NotNull BitSet | |
| public @NotNull BitSet | |
| public boolean | remove(@Nullable Object
object to be removed from this set, if present o)Implements java. Removes the specified element from this set if it is present (optional operation). |
| public boolean | removeAll(@NotNull Collection<?>
collection containing elements to be removed from this set collection)Implements java. Removes from this set all of its elements that are contained in the specified collection (optional operation). |
| public @Nullable Object | |
| public boolean | |
| public Object | |
| public boolean | retainAll(@NotNull Collection<?>
collection containing elements to be retained in this set collection)Implements java. Retains only the elements in this set that are contained in the specified collection (optional operation). |
| public @NotNull ReversibleIterable | |
| public @NotNull ReversibleIterator | |
| public @NotNull ReversibleIterable | |
| public @NotNull ReversibleIndexedIterator | |
| public boolean | |
| public int | |
| public @NotNull Object[] | toArray()
Implements java. Returns an array containing all of the elements in this set. |
| public <T> T[] | toArray(T[]
the array into which the elements of this set are to be
stored, if it is big enough; otherwise, a new array of the same
runtime type is allocated for this purpose. array)Implements java. Returns an array containing all of the elements in this set; the runtime type of the returned array is that of the specified array. |
| public void | |
| public @NotNull BitSet | |
| public @NotNull BitSet | |
| public @NotNull List |
| allowConcurrentModsIndexedProxy | back to summary |
|---|---|
| private @Nullable Indexed<E> allowConcurrentModsIndexedProxy
| |
| host | back to summary |
|---|---|
| private final @Nullable CollectionHost<E> host
| |
| indexedProxy | back to summary |
|---|---|
| private @Nullable Indexed<E> indexedProxy
| |
| keyMap | back to summary |
|---|---|
| private final @NotNull HashMap<E, Integer> keyMap
| |
| modificationCount | back to summary |
|---|---|
| private int modificationCount | |
| validIndices | back to summary |
|---|---|
| private final @NotNull BitSet validIndices
| |
| valueList | back to summary |
|---|---|
| pack-priv final @NotNull ArrayList<E> valueList
| |
| OrderedSet | back to summary |
|---|---|
| public OrderedSet() | |
| OrderedSet | back to summary |
|---|---|
| public OrderedSet(int capacity) | |
| OrderedSet | back to summary |
|---|---|
| public OrderedSet(@NotNull CollectionHost<E> host) | |
| OrderedSet | back to summary |
|---|---|
| public OrderedSet(int capacity, @Nullable CollectionHost<E> host) | |
| add | back to summary |
|---|---|
| public boolean add(E e) Implements java. Doc from java. Adds the specified element to this set if it is not already present
(optional operation). More formally, adds the specified element
The stipulation above does not imply that sets must accept all
elements; sets may refuse to add any particular element, including
| |
| add | back to summary |
|---|---|
| public boolean add(E e, @Nullable Object o) | |
| addAll | back to summary |
|---|---|
| public boolean addAll(@NotNull Collection<? extends E> collection) Implements java. Doc from java. Adds all of the elements in the specified collection to this set if
they're not already present (optional operation). If the specified
collection is also a set, the
| |
| addNull | back to summary |
|---|---|
| public void addNull() | |
| addNulls | back to summary |
|---|---|
| public void addNulls(int index) | |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the elements from this set (optional operation). The set will be empty after this call returns.
| |
| contains | back to summary |
|---|---|
| public boolean contains(@Nullable Object o) Implements java. Doc from java. Returns | |
| containsAll | back to summary |
|---|---|
| public boolean containsAll(@NotNull Collection<?> collection) Implements java. Doc from java. Returns
| |
| differenceBitSet | back to summary |
|---|---|
public @NotNull BitSet differenceBitSet(@NotNull Iterable<? extends E> items)
| |
| differenceBitSet | back to summary |
|---|---|
public @NotNull BitSet differenceBitSet(@NotNull Iterator<? extends E> items)
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Implements java. Doc from java. Compares the specified object with this set for equality. Returns
| |
| getConcurrentModsIndexedProxy | back to summary |
|---|---|
public @NotNull Indexed
| |
| getIndexedProxy | back to summary |
|---|---|
public @NotNull Indexed
| |
| getIteratorModificationCount | back to summary |
|---|---|
| pack-priv int getIteratorModificationCount() | |
| getModificationCount | back to summary |
|---|---|
| public int getModificationCount() | |
| getValidIndices | back to summary |
|---|---|
public @NotNull BitSet getValidIndices()
| |
| getValue | back to summary |
|---|---|
public E getValue(int index)
| |
| getValueList | back to summary |
|---|---|
public @NotNull List
| |
| getValueOrNull | back to summary |
|---|---|
public E getValueOrNull(int index)
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Returns the hash code value for this set. The hash code of a set is
defined to be the sum of the hash codes of the elements in the set,
where the hash code of a
| |
| ifNull | back to summary |
|---|---|
| public static <T1> T1 ifNull(T1 o, T1 nullValue) | |
| indexBitSet | back to summary |
|---|---|
public @NotNull BitSet indexBitSet(@NotNull Iterable<? extends E> items)
| |
| indexIterable | back to summary |
|---|---|
public @NotNull ReversibleIterable
| |
| indexIterator | back to summary |
|---|---|
public @NotNull ReversibleIterator
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(@Nullable Object element) | |
| inHostUpdate | back to summary |
|---|---|
| public boolean inHostUpdate() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| isSparse | back to summary |
|---|---|
public boolean isSparse()
| |
| isValidIndex | back to summary |
|---|---|
| public boolean isValidIndex(int index) | |
| iterable | back to summary |
|---|---|
public @NotNull ReversibleIterable
| |
| iterator | back to summary |
|---|---|
| public @NotNull ReversibleIndexedIterator Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee).
| |
| keyDifferenceBitSet | back to summary |
|---|---|
public @NotNull BitSet keyDifferenceBitSet(@NotNull Iterable<? extends Map.
| |
| keyDifferenceBitSet | back to summary |
|---|---|
public @NotNull BitSet keyDifferenceBitSet(@NotNull Iterator<? extends Map.
| |
| remove | back to summary |
|---|---|
| public boolean remove(@Nullable Object o) Implements java. Doc from java. Removes the specified element from this set if it is present
(optional operation). More formally, removes an element | |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(@NotNull Collection<?> collection) Implements java. Doc from java. Removes from this set all of its elements that are contained in the specified collection (optional operation). If the specified collection is also a set, this operation effectively modifies this set so that its value is the asymmetric set difference of the two sets.
| |
| removeHosted | back to summary |
|---|---|
public @Nullable Object removeHosted(@Nullable Object o)
| |
| removeIndex | back to summary |
|---|---|
| public boolean removeIndex(int index) | |
| removeIndexHosted | back to summary |
|---|---|
| public Object removeIndexHosted(int index) | |
| retainAll | back to summary |
|---|---|
| public boolean retainAll(@NotNull Collection<?> collection) Implements java. Doc from java. Retains only the elements in this set that are contained in the specified collection (optional operation). In other words, removes from this set all of its elements that are not contained in the specified collection. If the specified collection is also a set, this operation effectively modifies this set so that its value is the intersection of the two sets.
| |
| reversedIndexIterable | back to summary |
|---|---|
public @NotNull ReversibleIterable
| |
| reversedIndexIterator | back to summary |
|---|---|
public @NotNull ReversibleIterator
| |
| reversedIterable | back to summary |
|---|---|
public @NotNull ReversibleIterable
| |
| reversedIterator | back to summary |
|---|---|
public @NotNull ReversibleIndexedIterator
| |
| setValueAt | back to summary |
|---|---|
| public boolean setValueAt(int index, E value, @Nullable Object o) | |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |
| toArray | back to summary |
|---|---|
| public @NotNull Object[] toArray() Implements java. Doc from java. Returns an array containing all of the elements in this set. If this set makes any guarantees as to what order its elements are returned by its iterator, this method must return the elements in the same order. The returned array will be "safe" in that no references to it are maintained by this set. (In other words, this method must allocate a new array even if this set is backed by an array). The caller is thus free to modify the returned array. This method acts as bridge between array-based and collection-based APIs. | |
| toArray | back to summary |
|---|---|
| public <T> T[] toArray(T[] array) Implements java. Doc from java. Returns an array containing all of the elements in this set; the runtime type of the returned array is that of the specified array. If the set fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this set. If this set fits in the specified array with room to spare
(i.e., the array has more elements than this set), the element in
the array immediately following the end of the set is set to
If this set makes any guarantees as to what order its elements are returned by its iterator, this method must return the elements in the same order. Like the Suppose
String[] y = x.toArray(new String[0]);
Note that toArray(new Object[0]) is identical in function to
toArray().
| |
| validateIndex | back to summary |
|---|---|
| public void validateIndex(int index) | |
| valueDifferenceBitSet | back to summary |
|---|---|
public @NotNull BitSet valueDifferenceBitSet(@NotNull Iterable<? extends Map.
| |
| valueDifferenceBitSet | back to summary |
|---|---|
public @NotNull BitSet valueDifferenceBitSet(@NotNull Iterator<? extends Map.
| |
| values | back to summary |
|---|---|
public @NotNull List
| |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public E | |
| public int | |
| public void | |
| public void | |
| public int |
| allowConcurrentMods | back to summary |
|---|---|
| private final boolean allowConcurrentMods | |
| IndexedProxy | back to summary |
|---|---|
| public IndexedProxy(boolean allowConcurrentMods) | |
| get | back to summary |
|---|---|
| public E get(int index) Implements com.
| |
| modificationCount | back to summary |
|---|---|
| public int modificationCount() Implements com.
| |
| removeAt | back to summary |
|---|---|
| public void removeAt(int index) Implements com.
| |
| set | back to summary |
|---|---|
| public void set(int index, E item) Implements com.
| |
| size | back to summary |
|---|---|
| public int size() Implements com.
| |