Class ResponseParameter

  • All Implemented Interfaces:
    io.vertx.lang.rx.RxDelegate, Parameter

    public class ResponseParameter
    extends Object
    implements io.vertx.lang.rx.RxDelegate, Parameter
    • Field Detail

      • __TYPE_ARG

        public static final io.vertx.lang.rx.TypeArg<ResponseParameter> __TYPE_ARG
    • Constructor Detail

      • ResponseParameter

        public ResponseParameter​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getString

        public String getString()
        Specified by:
        getString in interface Parameter
        Returns:
        null if value is not a String, otherwise it returns value
      • getString

        public String getString​(String defaultValue)
        Specified by:
        getString in interface Parameter
        Parameters:
        defaultValue -
        Returns:
        the default if value is not a String or is null, otherwise it returns the value.
      • isString

        public boolean isString()
        Specified by:
        isString in interface Parameter
        Returns:
        true if value of this instance is a String instance
      • getInteger

        public Integer getInteger​(Integer defaultValue)
        Specified by:
        getInteger in interface Parameter
        Parameters:
        defaultValue -
        Returns:
        the default supplied if value is not a Number or is null, otherwise it returns the value.
      • getLong

        public Long getLong()
        Specified by:
        getLong in interface Parameter
        Returns:
        null if value is not a Number, otherwise it returns value as Long
      • getLong

        public Long getLong​(Long defaultValue)
        Specified by:
        getLong in interface Parameter
        Parameters:
        defaultValue -
        Returns:
        the default supplied if value is not a Number or is null, otherwise it returns the value.
      • getFloat

        public Float getFloat​(Float defaultValue)
        Specified by:
        getFloat in interface Parameter
        Parameters:
        defaultValue -
        Returns:
        the default supplied if value is not a Number or is null, otherwise it returns the value.
      • getDouble

        public Double getDouble​(Double defaultValue)
        Specified by:
        getDouble in interface Parameter
        Parameters:
        defaultValue -
        Returns:
        the default supplied if value is not a Number or is null, otherwise it returns the value.
      • isNumber

        public boolean isNumber()
        Specified by:
        isNumber in interface Parameter
        Returns:
        true if value of this instance is a Number instance
      • getBoolean

        public Boolean getBoolean​(Boolean defaultValue)
        Specified by:
        getBoolean in interface Parameter
        Parameters:
        defaultValue -
        Returns:
        the default supplied if value is not a Boolean or is null, otherwise it returns the value.
      • isBoolean

        public boolean isBoolean()
        Specified by:
        isBoolean in interface Parameter
        Returns:
        true if value of this instance is a Boolean instance
      • getJsonObject

        public JsonObject getJsonObject()
        Specified by:
        getJsonObject in interface Parameter
        Returns:
        null if value is not a , otherwise it returns value
      • getJsonObject

        public JsonObject getJsonObject​(JsonObject defaultValue)
        Specified by:
        getJsonObject in interface Parameter
        Parameters:
        defaultValue -
        Returns:
        the default supplied if value is not a or is null, otherwise it returns the value.
      • isJsonObject

        public boolean isJsonObject()
        Specified by:
        isJsonObject in interface Parameter
        Returns:
        true if value of this instance is a instance
      • getJsonArray

        public JsonArray getJsonArray()
        Specified by:
        getJsonArray in interface Parameter
        Returns:
        null if value is not a , otherwise it returns value
      • getJsonArray

        public JsonArray getJsonArray​(JsonArray defaultValue)
        Specified by:
        getJsonArray in interface Parameter
        Parameters:
        defaultValue -
        Returns:
        the default supplied if value is not a or is null, otherwise it returns the value.
      • isJsonArray

        public boolean isJsonArray()
        Specified by:
        isJsonArray in interface Parameter
        Returns:
        true if value of this instance is a instance
      • getBuffer

        public Buffer getBuffer()
        Specified by:
        getBuffer in interface Parameter
        Returns:
        null if value is not a , otherwise it returns value
      • getBuffer

        public Buffer getBuffer​(Buffer defaultValue)
        Specified by:
        getBuffer in interface Parameter
        Parameters:
        defaultValue -
        Returns:
        the default suppliedif value is not a or is null, otherwise it returns the value.
      • isBuffer

        public boolean isBuffer()
        Specified by:
        isBuffer in interface Parameter
        Returns:
        true if value of this instance is a instance
      • isNull

        public boolean isNull()
        Specified by:
        isNull in interface Parameter
        Returns:
        true if value is null
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Parameter
        Returns:
        true if it's an empty String, an empty / , an empty or it's null
      • get

        public Object get()
        Specified by:
        get in interface Parameter
        Returns:
        the plain value