feat(collection): add MyList interface
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
package ru.project.collection;
|
||||||
|
|
||||||
|
public interface MyList<T> {
|
||||||
|
|
||||||
|
void add(T element);
|
||||||
|
|
||||||
|
T get(int index);
|
||||||
|
|
||||||
|
T set(int index, T element);
|
||||||
|
|
||||||
|
T remove(int index);
|
||||||
|
|
||||||
|
int size();
|
||||||
|
|
||||||
|
boolean isEmpty();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user