Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import java.util.Collection;
/**
* ListInterface
*/
public interface ListInterface<E> extends Collection<E>{
/**
* Checks if the value is inside our List
* @param i value to check
* @return boolean value of the presence of the value
*/
public abstract boolean contains(Object i);
/**
* Remove the value at a certain index
* @param i index to remove
* @return status of the removal
*/
public abstract boolean remove(Integer i);
/**
* Get the first value of our List
* @return the first value of our List
*/
public abstract E getFirst();
/**
* Get the last value of our List
* @return the last value of our List
*/
public abstract E getLast();
/**
* add a value to our List
* @param elem value to add
* @return status of the adding
*/
public abstract boolean add(E elem);
}