public class DocumentRefListImpl extends ArrayList<DocumentRef> implements DocumentRefList
Constructor and Description |
---|
DocumentRefListImpl() |
DocumentRefListImpl(int size) |
DocumentRefListImpl(List<DocumentRef> list) |
DocumentRefListImpl(List<DocumentRef> list,
long totalSize)
Constructs a DocumentModelListImpl and sets the "total size" information.
|
Modifier and Type | Method and Description |
---|---|
void |
setTotalSize(long totalSize) |
long |
totalSize()
Returns the total size of the bigger list this is a part of.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
public DocumentRefListImpl()
public DocumentRefListImpl(int size)
public DocumentRefListImpl(List<DocumentRef> list)
public DocumentRefListImpl(List<DocumentRef> list, long totalSize)
The total size is additional information that can be provided in some cases where the list returned is a slice of a bigger list, this is used when getting paged results from a database for instance.
list
- the list of documentstotalSize
- the total size, with -1 meaning "same as the list's size"public void setTotalSize(long totalSize)
public long totalSize()
DocumentRefList
totalSize
in interface DocumentRefList
Copyright © 2015 Nuxeo SA. All rights reserved.