public class UserListResponse extends BaseResponse
Constructor and Description |
---|
UserListResponse()
This is the constructor that is used by Jackson deserializer to create an instance of
UserListResponse.
|
UserListResponse(UserDTO[] users)
Constructor for UserListResponse.
|
Modifier and Type | Method and Description |
---|---|
void |
validate()
Validates the response data.
|
public UserListResponse(UserDTO[] users)
users
- The array of users.public UserListResponse()
public void validate() throws java.lang.IllegalArgumentException
validate
in interface RESTMessage
validate
in class BaseResponse
java.lang.IllegalArgumentException
- if users are not set.