Project Wonder 5.0

er.rest
Class ERXRestFetchSpecification.Results<T>

java.lang.Object
  extended by er.rest.ERXRestFetchSpecification.Results<T>
Type Parameters:
T - the type of the result
Enclosing class:
ERXRestFetchSpecification<T extends com.webobjects.eocontrol.EOEnterpriseObject>

public static class ERXRestFetchSpecification.Results<T>
extends java.lang.Object

Encapsulates the results of a fetch along with some fetch metadata.

Author:
mschrag

Constructor Summary
ERXRestFetchSpecification.Results(com.webobjects.foundation.NSArray<T> objects, int startIndex, int batchSize, int totalCount)
          Constructs a new Results object.
 
Method Summary
 int batchSize()
          Returns the batch size.
 com.webobjects.foundation.NSArray<T> objects()
          Returns the objects from this batch.
 int startIndex()
          Returns the start index of the fetch.
 int totalCount()
          Returns the total count of the results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXRestFetchSpecification.Results

public ERXRestFetchSpecification.Results(com.webobjects.foundation.NSArray<T> objects,
                                         int startIndex,
                                         int batchSize,
                                         int totalCount)
Constructs a new Results object.

Parameters:
objects - the objects in the result
startIndex - the start index of the fetch
batchSize - the size of the batch
totalCount - the total number of objects
Method Detail

objects

public com.webobjects.foundation.NSArray<T> objects()
Returns the objects from this batch.

Returns:
the objects from this batch

startIndex

public int startIndex()
Returns the start index of the fetch.

Returns:
the start index of the fetch

batchSize

public int batchSize()
Returns the batch size.

Returns:
the batch size

totalCount

public int totalCount()
Returns the total count of the results.

Returns:
the total count of the results

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.