collections.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> boolean | Returns: true if the collection changed as a result of the callthe collection into which the collection, T... elements are to be inserted. May not be null.the elements to insert into the elements)collection. May not be null but may contain
null entries if the collection allows that.Adds all of the specified elements to the specified collection. |
| public static <T> boolean | Returns: true if the collection changed as a result of the callthe collection into which the collection, Iterable<? extends T> elements are to be inserted. May not be null.the elements to insert into the elements)collection. May not be null but may contain
null entries if the collection allows that.Adds all of the specified elements to the specified collection. |
| public static <T> List | Returns: an immutable copy of the specified list.the list for which an immutable copy should be created. May not be list)null.Returns an immutable copy of the specified |
| public static <T> Set | Returns: an immutable copy of the specified set.the set for which an immutable copy should be created. May not be set)null.Returns an immutable copy of the specified |
| public static <T> SortedSet | Returns: an immutable copy of the specified sorted set.the sorted set for which an immutable copy should be created. May not be set)null.Returns an immutable copy of the specified sorted |
| public static <K, V> Map | Returns: an immutable copy of the specified map.the map for which an immutable copy should be created. May not be map)null.Returns an immutable copy of the specified |
| public static <K, V> SortedMap | Returns: an immutable copy of the specified sorted map.the sorted map for which an immutable copy should be created. May not be map)null.Returns an immutable copy of the specified sorted |
| public static <E> boolean | Returns: true if the collection changed due to this operation.the to-be-changed collection. May not be collection, E null.the value that should be added to the collection. value)The operator mapping from |
| public static <E> boolean | Returns: true if the collection changed due to this operation.the to-be-changed collection. May not be collection, Iterable<? extends E> null.elements to be inserted into the collection. May not be newElements)null but may contain
null elements if the target collection supports null elements.The operator mapping from |
| public static <E> boolean | Returns: true if the collection changed due to this operation.the to-be-changed collection. May not be collection, E null.the value that should be removed from the collection. value)The operator mapping from |
| public static <E> boolean | Returns: true if the collection changed due to this operation.the to-be-changed collection. May not be collection, Collection<? extends E> null.elements to be removed from the collection. May not be newElements)null but may contain
null elements if the target collection supports null elements.The operator mapping from |
| public static <T> boolean | Returns: true if the collection changed as a result of the callthe collection from which the collection, T... elements are to be removed. May not be null.the elements be remove from the elements)collection. May not be null but may contain
null entries if the collection allows that.Removes all of the specified elements from the specified collection. |
| public static <T> boolean | Returns: true if the collection changed as a result of the callthe collection from which the collection, Collection<? extends T> elements are to be removed. May not be null.the elements to remove from the elements)collection. May not be null but may contain
null entries if the collection allows that.Removes all of the specified elements from the specified collection. |
| public static <T> boolean | Returns: true if the collection changed as a result of the callthe collection from which the collection, Iterable<? extends T> elements are to be removed. May not be null.the elements to remove from the elements)collection. May not be null but may contain
null entries if the collection allows that.Removes all of the specified elements from the specified collection. |
| public static <T> List | Returns: an unmodifiable view of the specified list.the list for which an unmodifiable view is to be returned. May not be list)null.Returns an unmodifiable view of the specified |
| public static <T> Collection | Returns: an unmodifiable view of the specified collection.the collection for which an unmodifiable view is to be returned. May not be collection)null.Returns an unmodifiable view of the specified |
| public static <T> Set | Returns: an unmodifiable view of the specified set.the set for which an unmodifiable view is to be returned. May not be set)null.Returns an unmodifiable view of the specified |
| public static <T> SortedSet | Returns: an unmodifiable view of the specified sorted set.the sorted set for which an unmodifiable view is to be returned. May not be set)null.Returns an unmodifiable view of the specified sorted |
| public static <K, V> Map | Returns: an unmodifiable view of the specified map.the map for which an unmodifiable view is to be returned. May not be map)null.Returns an unmodifiable view of the specified |
| public static <K, V> SortedMap | Returns: an unmodifiable view of the specified sorted map.the sorted map for which an unmodifiable view is to be returned. May not be map)null.Returns an unmodifiable view of the specified sorted |
| CollectionExtensions | back to summary |
|---|---|
| public CollectionExtensions() | |
| addAll | back to summary |
|---|---|
| public static <T> boolean addAll(Collection<? super T> collection, T... elements) Adds all of the specified elements to the specified collection.
| |
| addAll | back to summary |
|---|---|
| public static <T> boolean addAll(Collection<T> collection, Iterable<? extends T> elements) Adds all of the specified elements to the specified collection.
| |
| immutableCopy | back to summary |
|---|---|
| public static <T> List Returns an immutable copy of the specified
| |
| immutableCopy | back to summary |
|---|---|
| public static <T> Set Returns an immutable copy of the specified
| |
| immutableCopy | back to summary |
|---|---|
| public static <T> SortedSet Returns an immutable copy of the specified sorted
| |
| immutableCopy | back to summary |
|---|---|
| public static <K, V> Map Returns an immutable copy of the specified
| |
| immutableCopy | back to summary |
|---|---|
| public static <K, V> SortedMap Returns an immutable copy of the specified sorted
| |
| operator_add | back to summary |
|---|---|
| public static <E> boolean operator_add(Collection<? super E> collection, E value) The operator mapping from
| |
| operator_add | back to summary |
|---|---|
| public static <E> boolean operator_add(Collection<E> collection, Iterable<? extends E> newElements) The operator mapping from
| |
| operator_remove | back to summary |
|---|---|
| public static <E> boolean operator_remove(Collection<? super E> collection, E value) The operator mapping from
| |
| operator_remove | back to summary |
|---|---|
| public static <E> boolean operator_remove(Collection<E> collection, Collection<? extends E> newElements) The operator mapping from
| |
| removeAll | back to summary |
|---|---|
| public static <T> boolean removeAll(Collection<? super T> collection, T... elements) Removes all of the specified elements from the specified collection.
| |
| removeAll | back to summary |
|---|---|
| public static <T> boolean removeAll(Collection<T> collection, Collection<? extends T> elements) Removes all of the specified elements from the specified collection.
| |
| removeAll | back to summary |
|---|---|
| public static <T> boolean removeAll(Collection<T> collection, Iterable<? extends T> elements) Removes all of the specified elements from the specified collection.
| |
| unmodifiableView | back to summary |
|---|---|
| public static <T> List Returns an unmodifiable view of the specified
| |
| unmodifiableView | back to summary |
|---|---|
| public static <T> Collection Returns an unmodifiable view of the specified
| |
| unmodifiableView | back to summary |
|---|---|
| public static <T> Set Returns an unmodifiable view of the specified
| |
| unmodifiableView | back to summary |
|---|---|
| public static <T> SortedSet Returns an unmodifiable view of the specified sorted
| |
| unmodifiableView | back to summary |
|---|---|
| public static <K, V> Map Returns an unmodifiable view of the specified
| |
| unmodifiableView | back to summary |
|---|---|
| public static <K, V> SortedMap Returns an unmodifiable view of the specified sorted
| |