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
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the number of results available.Object[]
Returns the results as an array ofObject
s.void
setResults
(Object[] results_) SeegetResults()
.toString()
-
Constructor Details
-
Result
public Result()
-
-
Method Details
-
getResults
Returns the results as an array ofObject
s. Every service call should document the type of theObject
s that are returned within theResult
(or any object that extends it, such asResultPage
andResultList
).- Returns:
- the results as an array of
Object
s - See Also:
-
setResults
SeegetResults()
.- Parameters:
results_
- The results as an array ofObject
s 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
-