Package de.pisa.psa.rst.obj
Klasse PsaRstApiObjLis<T>
java.lang.Object
de.pisa.psa.rst.obj.PsaRstApiObjLis<T>
- Typparameter:
T
- type of the results
REST API: result list for multiple objects
- Seit:
- 04.07.2023
- Autor:
- weiland
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
add a resultstatic <T> PsaRstApiObjLis
<T> construct the object from a JSONget the continuation keyget resultsvoid
setContinuation
(String continuation) set the continuation keyint
size()
get the number of resultstoString()
-
Felddetails
-
CONTINUATION_KEY
name of the continuation parameter- Siehe auch:
-
-
Konstruktordetails
-
PsaRstApiObjLis
public PsaRstApiObjLis()Constructor
-
-
Methodendetails
-
getContinuation
get the continuation key- Gibt zurück:
- key
-
setContinuation
set the continuation key- Parameter:
continuation
- key
-
getResults
get results- Gibt zurück:
- list of results
-
size
public int size()get the number of results- Gibt zurück:
- count
-
addResult
add a result- Parameter:
result
- result to add
-
toString
-
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
- JSONtype
- type of the result elements- Gibt zurück:
- list
- Löst aus:
com.fasterxml.jackson.core.JsonProcessingException
-