|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> java.util.ArrayList<DocumentModel> org.nuxeo.ecm.core.api.impl.DocumentModelListImpl
public class DocumentModelListImpl
Constructor Summary | |
---|---|
DocumentModelListImpl()
|
|
DocumentModelListImpl(int size)
|
|
DocumentModelListImpl(java.util.List<DocumentModel> list)
|
|
DocumentModelListImpl(java.util.List<DocumentModel> list,
long totalSize)
Constructs a DocumentModelListImpl and sets the "total size" information. |
Method Summary | |
---|---|
void |
setTotalSize(long totalSize)
|
long |
totalSize()
Returns the total size of the bigger list this is a part of. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Constructor Detail |
---|
public DocumentModelListImpl()
public DocumentModelListImpl(int size)
public DocumentModelListImpl(java.util.List<DocumentModel> list)
public DocumentModelListImpl(java.util.List<DocumentModel> 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"Method Detail |
---|
public void setTotalSize(long totalSize)
public long totalSize()
DocumentModelList
totalSize
in interface DocumentModelList
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |