public interface AdapteeCollection<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T element)
Add a new element to the AdapteeCollection.
|
boolean |
addAll(java.util.Collection<? extends T> elements)
Add a element collection to the AdapteeCollection.
|
void |
clear()
Remove all element inside the AdapteeCollection.
|
T |
get(int index)
Search an element using the index passed as argument.
|
boolean |
remove(java.lang.Object element)
Remove one element from the AdapteeCollection.
|
boolean |
removeAll(java.util.Collection<?> elements)
Remove a element collection to the AdapteeCollection.
|
int |
size() |
int size()
T get(int index)
index - to search in the collection.boolean add(T element)
element - to add.boolean remove(java.lang.Object element)
element - to add.boolean addAll(java.util.Collection<? extends T> elements)
elements - to add.boolean removeAll(java.util.Collection<?> elements)
elements - to add.void clear()