Class IntegerResponse

  • All Implemented Interfaces:
    ErrorsHolder, Value<java.lang.Integer>

    public abstract class IntegerResponse
    extends java.lang.Object
    implements Value<java.lang.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 IntegerResponse create​(java.lang.Integer value, java.util.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.Value

        value
    • Constructor Detail

      • IntegerResponse

        public IntegerResponse()
    • Method Detail

      • create

        public static IntegerResponse create​(@Nullable
                                             java.lang.Integer value,
                                             java.util.List<Error> errors)