private Service generateActionResponse(@Nonnull Class<? extends RetryActionResultDto> response) {
if (response.isSuccess()) {
...
} else if (response.getRetryDecision() {
....
}
}
public interface RetryActionResultDto extends DTO {
public RetryDecision getRetryDecision();
public boolean isSuccess();
}
but I get exception
The method isSuccess() is undefined for the type Class
what i can do?