public abstract class DALCollectionBase<E> extends java.lang.Object implements DALCollection<E>
DALCollection.Decorated<E>| Constructor and Description |
|---|
DALCollectionBase() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<E> |
collect() |
int |
firstIndex() |
E |
getByIndex(int index) |
protected abstract E |
getByPosition(int position) |
java.util.stream.Stream<java.lang.Integer> |
indexes() |
boolean |
infinite() |
DALCollection<java.lang.Object> |
limit(int size) |
<R> DALCollectionBase<R> |
map(IndexedElement.Mapper<? super E,? extends R> mapper) |
DALCollectionBase<E> |
requireLimitedCollection(java.lang.String message) |
java.util.stream.Stream<IndexedElement<E>> |
stream() |
java.util.stream.Stream<E> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilter, sizepublic E getByIndex(int index)
getByIndex in interface DALCollection<E>public int firstIndex()
firstIndex in interface DALCollection<E>public DALCollectionBase<E> requireLimitedCollection(java.lang.String message)
requireLimitedCollection in interface DALCollection<E>protected abstract E getByPosition(int position)
public java.util.List<E> collect()
collect in interface DALCollection<E>public java.util.stream.Stream<E> values()
values in interface DALCollection<E>public java.util.stream.Stream<java.lang.Integer> indexes()
indexes in interface DALCollection<E>public <R> DALCollectionBase<R> map(IndexedElement.Mapper<? super E,? extends R> mapper)
map in interface DALCollection<E>public java.util.stream.Stream<IndexedElement<E>> stream()
stream in interface DALCollection<E>public boolean infinite()
infinite in interface DALCollection<E>public DALCollection<java.lang.Object> limit(int size)
limit in interface DALCollection<E>