T - The type of the collection's elements.S - The type of this list.public static class FilterableList.Empty<T,S extends FilterableList<T,S>> extends AbstractList<T> implements FilterableList<T,S>
FilterableList.FilterableList.AbstractBase<T,S extends FilterableList<T,S>>, FilterableList.Empty<T,S extends FilterableList<T,S>>modCount| Constructor and Description |
|---|
Empty() |
| 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 |
get(int index) |
T |
getOnly()
Returns the only element of this list.
|
int |
size() |
S |
subList(int fromIndex,
int toIndex) |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, setaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic T get(int index)
public int size()
size in interface Collection<T>size in interface List<T>size in class AbstractCollection<T>public T getOnly()
FilterableListIllegalStateException is thrown.getOnly in interface FilterableList<T,S extends FilterableList<T,S>>public S filter(ElementMatcher<? super T> elementMatcher)
FilterableListelementMatcher and returns a list that are matched
by the given matcher.filter in interface FilterableList<T,S extends FilterableList<T,S>>elementMatcher - The element matcher to match the elements of this list against.public S subList(int fromIndex, int toIndex)
subList in interface List<T>subList in interface FilterableList<T,S extends FilterableList<T,S>>subList in class AbstractList<T>Copyright © 2014–2016. All rights reserved.