Package com.appiancorp.suiteapi.common
Class Result
java.lang.Object
com.appiancorp.suiteapi.common.Result
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ResultList,ResultPage
Base class for storing the results returned by a service call.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the number of results available.Object[]Returns the results as an array ofObjects.voidsetResults(Object[] results_) SeegetResults().toString()
-
Constructor Details
-
Result
public Result()
-
-
Method Details
-
getResults
Returns the results as an array ofObjects. Every service call should document the type of theObjects that are returned within theResult(or any object that extends it, such asResultPageandResultList).- Returns:
- the results as an array of
Objects - See Also:
-
setResults
SeegetResults().- Parameters:
results_- The results as an array ofObjects returned by a service call.- See Also:
-
getNumResults
public int getNumResults()Gets the number of results available. If results is null, will return zero.- Returns:
- the number of results.
-
toString
-