mirror of
https://github.com/Xevion/contest.git
synced 2025-12-06 03:14:40 -06:00
update collection methods table formatting
This commit is contained in:
@@ -26,10 +26,11 @@ All datastructures referenced here can be imported using `import java.util.<stru
|
||||
## Methods of the Collection Interface
|
||||
|
||||
| Method | Description |
|
||||
|-----------------------------|-----------------------------------------------------|
|
||||
|-----------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|
|
||||
| **public boolean add(E e)** | It is used to insert an element in this collection. |
|
||||
| **public boolean addAll(Collection<? extends E> c)** | It is used to insert the specified collection elements in the invoking collection. |
|
||||
| **public boolean remove(Object element)** | It is used to delete an element from the collection. || **public boolean removeAll(Collection<?> c)** | It is used to delete all the elements of the specified collection from the invoking collection. |
|
||||
| **public boolean remove(Object element)** | It is used to delete an element from the collection. |
|
||||
| **public boolean removeAll(Collection<?> c)** | It is used to delete all the elements of the specified collection from the invoking collection. |
|
||||
| **default boolean removeIf(Predicate<? super E> filter)** | It is used to delete all the elements of the collection that satisfy the specified predicate. |
|
||||
| **public boolean retainAll(Collection<?> c)** | It is used to delete all the elements of invoking collection except the specified collection. |
|
||||
| **public int size()** | It returns the total number of elements in the collection. |
|
||||
|
||||
Reference in New Issue
Block a user