@Immutable public class BasicResultList extends java.util.AbstractList<Result> implements LenskitResultList
Basic list-based implementation of a result list.
Constructor and Description |
---|
BasicResultList(java.util.List<? extends Result> rss)
Create a new result list from a list of results.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.Object object) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.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(java.lang.Object object) |
boolean |
isEmpty() |
UnmodifiableIterator<Result> |
iterator() |
int |
lastIndexOf(java.lang.Object object) |
UnmodifiableListIterator<Result> |
listIterator() |
UnmodifiableListIterator<Result> |
listIterator(int index) |
int |
size() |
ImmutableList<Result> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
add, add, addAll, clear, remove, removeRange, set
addAll, remove, removeAll, retainAll, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public BasicResultList(java.util.List<? extends Result> rss)
Create a new result list from a list of results.
rss
- The result list.public Result get(int index)
public int size()
public UnmodifiableIterator<Result> iterator()
public UnmodifiableListIterator<Result> listIterator()
public UnmodifiableListIterator<Result> listIterator(int index)
public int indexOf(java.lang.Object object)
public int lastIndexOf(java.lang.Object object)
public boolean contains(java.lang.Object object)
public ImmutableList<Result> subList(int fromIndex, int toIndex)
public boolean equals(java.lang.Object obj)
public int hashCode()
public boolean isEmpty()
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean containsAll(java.util.Collection<?> c)
public LongList idList()
ResultList
Return a list of the item (or user) IDs in this result list.
idList
in interface ResultList
idList
in interface LenskitResultList