Class Rectangle


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.8.0")
    public class Rectangle
    extends Object
    Rectangle
    • Constructor Detail

      • Rectangle

        public Rectangle()
    • Method Detail

      • setX

        public void setX​(Float x)
      • setY

        public void setY​(Float y)
      • getWidth

        @Nullable
        public Float getWidth()
        Get width minimum: 1
        Returns:
        width
      • setWidth

        public void setWidth​(Float width)
      • getHeight

        @Nullable
        public Float getHeight()
        Get height minimum: 1
        Returns:
        height
      • setHeight

        public void setHeight​(Float height)
      • hashCode

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

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to Rectangle
      • fromJson

        public static Rectangle fromJson​(String jsonString)
                                  throws IOException
        Create an instance of Rectangle given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Rectangle
        Throws:
        IOException - if the JSON string is invalid with respect to Rectangle
      • toJson

        public String toJson()
        Convert an instance of Rectangle to an JSON string
        Returns:
        JSON string