Class IntegerResponse
- java.lang.Object
-
- com.cdancy.jenkins.rest.domain.common.IntegerResponse
-
- All Implemented Interfaces:
ErrorsHolder,Value<Integer>
public abstract class IntegerResponse extends Object implements Value<Integer>, ErrorsHolder
Integer response to be returned when an endpoint returns an integer.When the HTTP response code is valid the `value` parameter will be set to the integer value while a non-valid response has the `value` set to null along with any potential `error` objects returned from Jenkins.
-
-
Constructor Summary
Constructors Constructor Description IntegerResponse()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IntegerResponsecreate(Integer value, List<Error> errors)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.cdancy.jenkins.rest.domain.common.ErrorsHolder
errors
-
-
-
-
Method Detail
-
create
public static IntegerResponse create(@Nullable Integer value, List<Error> errors)
-
-