public class Slice<O> extends AbstractList<O> implements List<O>
List.modCount| Constructor and Description |
|---|
Slice(List<O> elements,
Sort sort,
Integer offset,
Integer limit,
Long totalElements) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(O elem)
Deprecated.
|
static <O> Slice<O> |
empty()
Create an empty slice with zero elements.
|
static <O> Slice<O> |
fromList(List<O> list)
Create a slice from a
List. |
O |
get(int i) |
Integer |
getLimit() |
Integer |
getOffset() |
Sort |
getSort() |
Long |
getTotalElements() |
<S> Slice<S> |
map(Function<? super O,? extends S> converter) |
boolean |
remove(Object elem)
Deprecated.
|
int |
size() |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streampublic static <O> Slice<O> empty()
public O get(int i)
public int size()
size in interface Collection<O>size in interface List<O>size in class AbstractCollection<O>@Deprecated public boolean add(O elem)
add in interface Collection<O>add in interface List<O>add in class AbstractList<O>@Deprecated public boolean remove(Object elem)
AclAfterFilterValueObjectCollectionProvider.remove in interface Collection<O>remove in interface List<O>remove in class AbstractCollection<O>@Nullable public Long getTotalElements()
Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.