N | Funksiya nomlari | Tarifi |
1 | public boolean add(Object element) | Collectionga ma’lumot yizishda foydalanilari |
2 | public boolean addAll(Collection c) | Belgilangan collection larni yozishda ishlailadi |
3 | public boolean remove(Object element) | Collectionni elementini o’chirishda ishlatiladi |
4 | public boolean removeAll(Collection c) | Belegilangan collectionni o’chirishda ishlariladi |
5 | public boolean retainAll(Collection c) |
|
6 | public int size() | Collectionlar elementlar sonini qaytaradi |
7 | public void clear() | Collectionni elementlarini o’chiradi |
8 | public boolean contains(Object element) | |
9 | public boolean containsAll(Collection c) | Belgilangan colleectionlarni qidirshda ishlatiladi |
10 | public Iterator iterator() | Iterator qaytaradi |
11 | public Object[] toArray() | Collection ni massivga o’giradi |
12 |
public boolean isEmpty()
| |
13 |
public boolean equals(Object element)
| Ikkita collectionni bir biri bilan solishtiradi |
14 |
public int hashCode()
| Collectionni hash code dagi raqamini qaytaradi |