Klasse PsaRstApiObjLis<T>

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

public class PsaRstApiObjLis<T> extends Object
REST API: result list for multiple objects
Seit:
04.07.2023
Autor:
weiland
  • Felddetails

    • CONTINUATION_KEY

      public static final String CONTINUATION_KEY
      name of the continuation parameter
      Siehe auch:
  • Konstruktordetails

    • PsaRstApiObjLis

      public PsaRstApiObjLis()
      Constructor
  • Methodendetails

    • getContinuation

      public String getContinuation()
      get the continuation key
      Gibt zurück:
      key
    • setContinuation

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

      public List<T> getResults()
      get results
      Gibt zurück:
      list of results
    • size

      public int size()
      get the number of results
      Gibt zurück:
      count
    • addResult

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

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
      Siehe auch:
    • fromJson

      public static <T> PsaRstApiObjLis<T> fromJson(String json, Class<T> type) throws com.fasterxml.jackson.core.JsonProcessingException
      construct the object from a JSON
      Typparameter:
      T - type of the result elements
      Parameter:
      json - JSON
      type - type of the result elements
      Gibt zurück:
      list
      Löst aus:
      com.fasterxml.jackson.core.JsonProcessingException