Index
All Classes and Interfaces|All Packages
A
- add(int, E) - Method in class com.collection.arraylist.CustomArrayList
-
Method to insert the specified element at the specified index in the list.
- add(int, T) - Method in interface com.collection.arraylist.CustomList
-
Inserts the specified element at the specified index in the list.
- add(E) - Method in class com.collection.arraylist.CustomArrayList
-
Method to add the specified element to the end of the list.
- add(T) - Method in interface com.collection.arraylist.CustomList
-
Adds the specified element to the end of the list.
- addAll(E[]) - Method in class com.collection.arraylist.CustomArrayList
-
Method to add all the elements in the specified array to the end of the list.
- addAll(T[]) - Method in interface com.collection.arraylist.CustomList
-
Adds all the elements in the specified array to the end of the list.
C
- clear() - Method in class com.collection.arraylist.CustomArrayList
-
Removes all of the elements from this list.
- clear() - Method in interface com.collection.arraylist.CustomList
-
Removes all elements from the list, leaving it empty.
- com.collection.arraylist - package com.collection.arraylist
- contains(E) - Method in class com.collection.arraylist.CustomArrayList
-
Method to check if the list contains the specified element.
- contains(T) - Method in interface com.collection.arraylist.CustomList
-
Checks if the list contains the specified element.
- CustomArrayList<E> - Class in com.collection.arraylist
-
This class represents a custom implementation of a dynamic array list data structure.
- CustomArrayList() - Constructor for class com.collection.arraylist.CustomArrayList
-
Constructs an instance of CustomArrayList with the default capacity.
- CustomArrayList(int) - Constructor for class com.collection.arraylist.CustomArrayList
-
Constructs an instance of CustomArrayList with the specified capacity.
- CustomList<T> - Interface in com.collection.arraylist
-
This interface represents a custom list data structure that can store elements of type T.
E
- ensureCapacity(int) - Method in class com.collection.arraylist.CustomArrayList
-
Method to increase the capacity of this CustomArrayList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.
G
- get(int) - Method in class com.collection.arraylist.CustomArrayList
-
Method to get the element at the specified index in the list.
- get(int) - Method in interface com.collection.arraylist.CustomList
-
Returns the element at the specified index in the list.
I
- indexOf(E) - Method in class com.collection.arraylist.CustomArrayList
-
Method which returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.
- indexOf(T) - Method in interface com.collection.arraylist.CustomList
-
Returns the index of the first occurrence of the specified element in the list.
Q
- QuickSort - Class in com.collection.arraylist
-
This class provides a static method for performing a quicksort algorithm on a CustomArrayList containing elements that implement the Comparable interface.
- QuickSort() - Constructor for class com.collection.arraylist.QuickSort
R
- remove(int) - Method in class com.collection.arraylist.CustomArrayList
-
Method to remove the element at the specified index from the list.
- remove(int) - Method in interface com.collection.arraylist.CustomList
-
Removes the element at the specified index in the list.
- remove(E) - Method in class com.collection.arraylist.CustomArrayList
-
Method to remove the first occurrence of the specified element from the list.
- remove(T) - Method in interface com.collection.arraylist.CustomList
-
Removes the first occurrence of the specified element from the list.
S
- set(int, E) - Method in class com.collection.arraylist.CustomArrayList
-
Method to replace the element at the specified index with the specified element.
- set(int, T) - Method in interface com.collection.arraylist.CustomList
-
Replaces the element at the specified index with the specified element.
- size() - Method in class com.collection.arraylist.CustomArrayList
-
Returns the number of elements in the list.
- size() - Method in interface com.collection.arraylist.CustomList
-
Returns the number of elements in the list.
- sort(CustomArrayList<T>) - Static method in class com.collection.arraylist.QuickSort
-
Sorts the elements in the given CustomArrayList using the quicksort algorithm.
- sort(CustomArrayList<T>, Comparator<T>) - Static method in class com.collection.arraylist.QuickSort
-
Method to sort the elements in the given CustomArrayList using the Quick Sort algorithm.
T
- toString() - Method in class com.collection.arraylist.CustomArrayList
-
Method which returns a string representation of this list.
All Classes and Interfaces|All Packages