com.esri.core.internal.catalog
Interface PageableResultType

All Known Implementing Classes:
Group, Item, User

public interface PageableResultType

An interface that identifies all types of results returned from arcgis.com and can be iterated over using a ResultCursor


Method Summary
<T extends PageableResultType>
int
compare(T arg0)
          Internal method that all instances of a PageableResultType must implement.
 boolean fromJson(org.codehaus.jackson.JsonParser parser, com.esri.core.internal.catalog.Filter filter, Catalog catalog)
          Internal method that all instances of a PageableResultType must implement.
 

Method Detail

fromJson

boolean fromJson(org.codehaus.jackson.JsonParser parser,
                 com.esri.core.internal.catalog.Filter filter,
                 Catalog catalog)
                 throws Exception
Internal method that all instances of a PageableResultType must implement.

Parameters:
parser - the JsonParser
filter - an optional client side filter
catalog - the Catalog
Returns:
true if an individual result value qualifies to be returned after applying the client side filter
Throws:
Exception

compare

<T extends PageableResultType> int compare(T arg0)
Internal method that all instances of a PageableResultType must implement.

Parameters:
arg0 - an instance of a PageableResultType
Returns:
-1 if this instance is less than arg0, 1 if it is greater, 0 if they are equal.


Copyright © 2012. All Rights Reserved.