@Immutable public class BasicResultList extends AbstractList<Result> implements LenskitResultList
Basic list-based implementation of a result list.
modCount| Constructor and Description |
|---|
BasicResultList(List<? extends Result> rss)
Create a new result list from a list of results.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object obj) |
Result |
get(int index) |
int |
hashCode() |
LongList |
idList()
Return a list of the item (or user) IDs in this result list.
|
int |
indexOf(Object object) |
boolean |
isEmpty() |
UnmodifiableIterator<Result> |
iterator() |
int |
lastIndexOf(Object object) |
UnmodifiableListIterator<Result> |
listIterator() |
UnmodifiableListIterator<Result> |
listIterator(int index) |
int |
size() |
ImmutableList<Result> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
add, add, addAll, clear, remove, removeRange, setaddAll, remove, removeAll, retainAll, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, add, addAll, addAll, clear, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliteratorparallelStream, removeIf, streampublic Result get(int index)
public int size()
size in interface Collection<Result>size in interface List<Result>size in class AbstractCollection<Result>public UnmodifiableIterator<Result> iterator()
public UnmodifiableListIterator<Result> listIterator()
listIterator in interface List<Result>listIterator in class AbstractList<Result>public UnmodifiableListIterator<Result> listIterator(int index)
listIterator in interface List<Result>listIterator in class AbstractList<Result>public int indexOf(Object object)
public int lastIndexOf(Object object)
lastIndexOf in interface List<Result>lastIndexOf in class AbstractList<Result>public boolean contains(Object object)
contains in interface Collection<Result>contains in interface List<Result>contains in class AbstractCollection<Result>public ImmutableList<Result> subList(int fromIndex, int toIndex)
public boolean equals(Object obj)
equals in interface Collection<Result>equals in interface List<Result>equals in class AbstractList<Result>public int hashCode()
hashCode in interface Collection<Result>hashCode in interface List<Result>hashCode in class AbstractList<Result>public boolean isEmpty()
isEmpty in interface Collection<Result>isEmpty in interface List<Result>isEmpty in class AbstractCollection<Result>public Object[] toArray()
toArray in interface Collection<Result>toArray in interface List<Result>toArray in class AbstractCollection<Result>public <T> T[] toArray(T[] a)
toArray in interface Collection<Result>toArray in interface List<Result>toArray in class AbstractCollection<Result>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Result>containsAll in interface List<Result>containsAll in class AbstractCollection<Result>public LongList idList()
ResultListReturn a list of the item (or user) IDs in this result list.
idList in interface ResultListidList in interface LenskitResultList