public static class DALCollection.Decorated<E> extends java.lang.Object implements DALCollection<E>
DALCollection.Decorated<E>| Constructor and Description |
|---|
Decorated(DALCollection<E> origin) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<E> |
collect() |
DALCollection<E> |
filter(java.util.function.Predicate<E> predicate) |
int |
firstIndex() |
E |
getByIndex(int index) |
java.util.stream.Stream<java.lang.Integer> |
indexes() |
boolean |
infinite() |
java.util.Iterator<IndexedElement<E>> |
iterator() |
DALCollection<java.lang.Object> |
limit(int size) |
<R> DALCollection<R> |
map(IndexedElement.Mapper<? super E,? extends R> mapper) |
DALCollection.Decorated<E> |
requireLimitedCollection(java.lang.String message) |
int |
size() |
java.util.stream.Stream<IndexedElement<E>> |
stream() |
java.util.stream.Stream<E> |
values() |
public Decorated(DALCollection<E> origin)
public int size()
size in interface DALCollection<E>public E getByIndex(int index)
getByIndex in interface DALCollection<E>public java.util.Iterator<IndexedElement<E>> iterator()
iterator in interface java.lang.Iterable<IndexedElement<E>>public int firstIndex()
firstIndex in interface DALCollection<E>public java.util.List<E> collect()
collect in interface DALCollection<E>public DALCollection<E> filter(java.util.function.Predicate<E> predicate)
filter 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>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> DALCollection<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 DALCollection.Decorated<E> requireLimitedCollection(java.lang.String message)
requireLimitedCollection in interface DALCollection<E>