public final class ResultSet extends Object
<set/> element in the http://jabber.org/protocol/rsm namespace.| Modifier and Type | Method and Description |
|---|---|
static ResultSet |
forFirstPage(int itemCount)
Gets a result set, which requests the first page.
|
static ResultSet |
forIndex(int itemCount,
int index)
Gets a result set, which starts at a particular index.
|
static ResultSet |
forItemCount()
Gets a result set, which gets the item count of a result without retrieving the items themselves.
|
static ResultSet |
forLastPage(int itemCount)
Gets a result set, which requests the last page.
|
static ResultSet |
forLimit(int limit)
Gets a result set, which limits the number of items of a result to be returned.
|
static ResultSet |
forNextPage(int itemCount,
String id)
Gets a result set, which requests the next page after a specified item.
|
static ResultSet |
forPreviousPage(int itemCount,
String id)
Gets a result set, which requests the previous page before a specified item.
|
String |
getFirstItem()
Gets the first item.
|
Integer |
getFirstItemIndex()
Gets the first item's index.
|
Integer |
getItemCount()
Gets the item count of a result set.
|
String |
getLastItem()
Gets the last item.
|
public static ResultSet forLimit(int limit)
limit - The limit, i.e. the maximum number of items.public static ResultSet forFirstPage(int itemCount)
itemCount - The item count per page.public static ResultSet forNextPage(int itemCount, String id)
itemCount - The item count per page.id - The id of the last item of the previous page. This should be the getLastItem() ()} of the previous page.public static ResultSet forPreviousPage(int itemCount, String id)
itemCount - The item count per page.id - The id of the first item of the next page. This should be the getFirstItem() of the next page.public static ResultSet forLastPage(int itemCount)
itemCount - The item count per page.public static ResultSet forIndex(int itemCount, int index)
itemCount - The item count per page.index - The index to start from.public static ResultSet forItemCount()
public Integer getItemCount()
public String getFirstItem()
public Integer getFirstItemIndex()
public String getLastItem()
Copyright © 2014 XMPP.rocks. All rights reserved.