public class OwEmptyIterable<T> extends OwIterableAttributeBag<T>
This is kind of "null object" implementation for OwIterable.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Modifier and Type | Class and Description |
|---|---|
static class |
OwEmptyIterable.EmptyIterator<V>
An empty iterator.
Since JDK does not provide a public default implementation. |
isPage| Constructor and Description |
|---|
OwEmptyIterable() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getHasMoreItems()
Returns whether the repository contains additional items beyond the page of
items already fetched.
|
OwEmptyIterable<T> |
getPage()
Gets an iterable for the current sub collection within the CMIS collection using
default maximum number of items
|
OwEmptyIterable<T> |
getPage(int maxNumItems)
Gets an iterable for the current sub collection within the CMIS collection
|
long |
getPageNumItems()
Returns the number of items fetched for the current page.
|
long |
getTotalNumItems()
This will return a "guestimation"
since parts/pages will be retrieved on request.
|
static <U> OwEmptyIterable<U> |
instance() |
Iterator<T> |
iterator() |
OwEmptyIterable<T> |
skipTo(long position) |
attributecount, getAttribute, getAttribute, getAttributeNames, getSafeAttribute, hasAttributepublic static <U> OwEmptyIterable<U> instance()
public OwEmptyIterable<T> skipTo(long position)
position - This is relative to the start of the whole collection of items. It is not interpreted as relative to the start of a page.this.public OwEmptyIterable<T> getPage()
OwIterablepublic OwEmptyIterable<T> getPage(int maxNumItems)
OwIterablemaxNumItems - maximum number of items the sub collection will containpublic long getPageNumItems()
OwIterablepublic boolean getHasMoreItems()
OwIterablepublic long getTotalNumItems()
OwIterableCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.