Class Result

java.lang.Object
com.appiancorp.suiteapi.common.Result
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ResultList, ResultPage

public class Result extends Object implements Serializable
Base class for storing the results returned by a service call.
See Also:
  • Constructor Details

    • Result

      public Result()
  • Method Details

    • getResults

      public Object[] getResults()
      Returns the results as an array of Objects. Every service call should document the type of the Objects that are returned within the Result (or any object that extends it, such as ResultPage and ResultList).
      Returns:
      the results as an array of Objects
      See Also:
    • setResults

      public void setResults(Object[] results_)
      Parameters:
      results_ - The results as an array of Objects 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

      public String toString()
      Overrides:
      toString in class Object