Package ch.ivyteam.ivy.rest.client
Class GenericTypes
java.lang.Object
ch.ivyteam.ivy.rest.client.GenericTypes
Simplifies the definition of a de-serialization type for a REST response entity.
- Since:
- 6.1.1
- API:
- This is a public API.
-
Method Summary
-
Method Details
-
listOf
Simplifies the definition of aList
return type. E.g.
List<Person> persons = Ivy.rest().client("theService").request().get(GenericTypes.listOf(Person.class))
- Parameters:
clazz
- generic type parameter of the list- Returns:
- generic type definition for
REST response
. - API:
- This public API is available in Java.
-