public class SmartList<T>
extends java.util.ArrayList<T>
| Modifier and Type | Method and Description |
|---|---|
void |
addFirst(T pItem) |
void |
addLast(T pItem) |
void |
call(IMatcher<T> pMatcher,
ParameterCallable<T> pParameterCallable) |
void |
call(ParameterCallable<T> pParameterCallable) |
void |
clear(ParameterCallable<T> pParameterCallable) |
T |
get(IMatcher<T> pMatcher) |
T |
getFirst() |
T |
getLast() |
int |
indexOf(IMatcher<T> pMatcher) |
int |
lastIndexOf(IMatcher<T> pMatcher) |
java.util.ArrayList<T> |
query(IMatcher<T> pMatcher) |
<L extends java.util.List<T>> |
query(IMatcher<T> pMatcher,
L pResult) |
<S extends T> |
queryForSubclass(IMatcher<T> pMatcher) |
<L extends java.util.List<S>,S extends T> |
queryForSubclass(IMatcher<T> pMatcher,
L pResult) |
T |
remove(IMatcher<T> pMatcher) |
T |
remove(IMatcher<T> pMatcher,
ParameterCallable<T> pParameterCallable) |
boolean |
remove(T pItem,
ParameterCallable<T> pParameterCallable) |
boolean |
removeAll(IMatcher<T> pMatcher) |
boolean |
removeAll(IMatcher<T> pMatcher,
ParameterCallable<T> pParameterCallable) |
T |
removeFirst() |
T |
removeLast() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic void addFirst(T pItem)
public void addLast(T pItem)
public T getFirst() throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsExceptionpublic T getLast() throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsExceptionpublic T removeFirst() throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsExceptionpublic T removeLast() throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsExceptionpublic boolean remove(T pItem, ParameterCallable<T> pParameterCallable)
pItem - the item to remove.pParameterCallable - to be called with the removed item, if it was removed.public T remove(IMatcher<T> pMatcher, ParameterCallable<T> pParameterCallable)
public boolean removeAll(IMatcher<T> pMatcher, ParameterCallable<T> pParameterCallable)
pMatcher - to find the items.pParameterCallable - to be called with each matched item after it was removed.public void clear(ParameterCallable<T> pParameterCallable)
public <L extends java.util.List<S>,S extends T> L queryForSubclass(IMatcher<T> pMatcher, L pResult)
public void call(ParameterCallable<T> pParameterCallable)
public void call(IMatcher<T> pMatcher, ParameterCallable<T> pParameterCallable)