public abstract class OwAbstractIterator<T> extends Object implements Iterator<T>
Abstract implementation of a java iterator for pageable collections.
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 | Constructor and Description |
---|---|
protected |
OwAbstractIterator(long skipCount,
OwAbstractPageFetcher<T> pageFetcher) |
Modifier and Type | Method and Description |
---|---|
protected OwPage<T> |
getCurrentPage()
Gets the current page of items within collection
|
boolean |
getHasMoreItems() |
protected OwAbstractPageFetcher<T> |
getPageFetcher() |
long |
getPageNumItems() |
protected long |
getSkipCount() |
protected int |
getSkipOffset() |
long |
getTotalNumItems() |
protected OwPage<T> |
incrementPage() |
protected int |
incrementSkipOffset() |
void |
remove() |
protected OwAbstractIterator(long skipCount, OwAbstractPageFetcher<T> pageFetcher)
public long getTotalNumItems()
public boolean getHasMoreItems()
protected OwPage<T> getCurrentPage()
public long getPageNumItems()
protected long getSkipCount()
protected int getSkipOffset()
protected int incrementSkipOffset()
protected OwAbstractPageFetcher<T> getPageFetcher()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.