public abstract class DALCollection<E> extends java.lang.Object implements java.lang.Iterable<IndexedElement<E>>
| Modifier and Type | Class and Description |
|---|---|
static class |
DALCollection.Decorated<E> |
| Constructor and Description |
|---|
DALCollection() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<E> |
collect() |
protected int |
firstIndex() |
E |
getByIndex(int index) |
protected abstract E |
getByPosition(int position) |
java.util.stream.Stream<java.lang.Integer> |
indexes() |
boolean |
infinite() |
<R> DALCollection<R> |
map(IndexedElement.Mapper<? super E,? extends R> mapper) |
DALCollection<E> |
requireLimitedCollection(java.lang.String message) |
abstract int |
size() |
java.util.stream.Stream<IndexedElement<E>> |
stream() |
java.util.stream.Stream<E> |
values() |
public abstract int size()
public E getByIndex(int index)
protected int firstIndex()
public DALCollection<E> requireLimitedCollection(java.lang.String message)
protected abstract E getByPosition(int position)
public java.util.List<E> collect()
public java.util.stream.Stream<E> values()
public java.util.stream.Stream<java.lang.Integer> indexes()
public <R> DALCollection<R> map(IndexedElement.Mapper<? super E,? extends R> mapper)
public java.util.stream.Stream<IndexedElement<E>> stream()
public boolean infinite()