Class PsaRstApiObjLis<T>

java.lang.Object
de.pisa.psa.rst.obj.PsaRstApiObjLis<T>
Type Parameters:
T - type of the results

public class PsaRstApiObjLis<T> extends Object
REST API: result list for multiple objects
Since:
04.07.2023
Author:
weiland
  • Field Details

  • Constructor Details

    • PsaRstApiObjLis

      public PsaRstApiObjLis()
      Constructor
  • Method Details

    • getContinuation

      public String getContinuation()
      get the continuation key
      Returns:
      key
    • setContinuation

      public void setContinuation(String continuation)
      set the continuation key
      Parameters:
      continuation - key
    • getResults

      public List<T> getResults()
      get results
      Returns:
      list of results
    • size

      public int size()
      get the number of results
      Returns:
      count
    • addResult

      public void addResult(T result)
      add a result
      Parameters:
      result - result to add
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also:
    • fromJson

      public static <T> PsaRstApiObjLis<T> fromJson(String json, Class<T> type) throws com.fasterxml.jackson.core.JsonProcessingException
      construct the object from a JSON
      Type Parameters:
      T - type of the result elements
      Parameters:
      json - JSON
      type - type of the result elements
      Returns:
      list
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException