T - The type of the collection's elements.S - The type of this list.public interface FilterableList<T,S extends FilterableList<T,S>> extends List<T>
ElementMatcher to reduce a lists to elements
that are matched by this matcher in this list.| Modifier and Type | Interface and Description |
|---|---|
static class |
FilterableList.AbstractBase<T,S extends FilterableList<T,S>>
A base implementation of a
FilterableList. |
static class |
FilterableList.Empty<T,S extends FilterableList<T,S>>
An implementation of an empty
FilterableList. |
| Modifier and Type | Method and Description |
|---|---|
S |
filter(ElementMatcher<? super T> elementMatcher)
Filters any elements in this lists by the given
elementMatcher and returns a list that are matched
by the given matcher. |
T |
getOnly()
Returns the only element of this list.
|
S |
subList(int fromIndex,
int toIndex) |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, toArray, toArrayparallelStream, removeIf, streamS filter(ElementMatcher<? super T> elementMatcher)
elementMatcher and returns a list that are matched
by the given matcher.elementMatcher - The element matcher to match the elements of this list against.T getOnly()
IllegalStateException is thrown.Copyright © 2014–2016. All rights reserved.