public class ItemResultList<I extends BasicItem> extends AbstractResultList<I>
ItemQuery
as a list.ItemQuery.list(DbControl)
Modifier and Type | Class and Description |
---|---|
private class |
ItemResultList.ResultListIterator<T extends BasicItem>
Inner class to implement the iterator returned by
the
iterator() method. |
private class |
ItemResultList.ResultListListIterator<T extends BasicItem>
Inner class to implement the iterator returned by
the
listIterator() method. |
Modifier and Type | Field and Description |
---|---|
private List<? extends BasicData> |
data
The internal list of BasicData objects.
|
private DbControl |
dc
The DbControl that was used in the query.
|
private Class<I> |
itemClass
The class of the items returned by the query (and this object).
|
private Item |
itemType
The type of items returned by the query.
|
Constructor and Description |
---|
ItemResultList(List<? extends BasicData> data,
DbControl dc,
Class<I> itemClass,
long totalCount) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object o) |
boolean |
equals(Object o) |
private <E extends BasicItem> |
get(Class<E> returnType,
BasicData dataObject) |
I |
get(int index)
Get a BasicItem derived object.
|
Item |
getItemType()
Get the type of items contained in this list.
|
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<I> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<I> |
listIterator() |
ListIterator<I> |
listIterator(int index) |
int |
size() |
List<I> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
add, add, addAll, addAll, clear, containsAll, getTotalCount, remove, remove, removeAll, retainAll, set
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
replaceAll, sort, spliterator
parallelStream, removeIf, stream
private final DbControl dc
private final Class<I extends BasicItem> itemClass
private final Item itemType
public boolean contains(Object o)
public I get(int index)
public int indexOf(Object o)
public int lastIndexOf(Object o)
public boolean isEmpty()
public ListIterator<I> listIterator()
public ListIterator<I> listIterator(int index)
public int size()
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean equals(Object o)
public int hashCode()
public Item getItemType()
Item
object or null if not known