Class Size

    • Field Summary

      Fields 
      Modifier and Type Field Description
      double height
      The Height value (vertical size).
      double width
      The Width value (horizontal size).
    • Constructor Summary

      Constructors 
      Constructor Description
      Size()
      Constructor.
      Size​(double width, double height)  
    • Field Detail

      • width

        public double width

        The Width value (horizontal size).

      • height

        public double height

        The Height value (vertical size).

    • Constructor Detail

      • Size

        public Size()
        Constructor.
      • Size

        public Size​(double width,
                    double height)
    • Method Detail

      • getWidth

        public double getWidth()
        Gets width
      • setWidth

        public void setWidth​(double width)
        Sets width
      • getHeight

        public double getHeight()
        Gets height
      • setHeight

        public void setHeight​(double height)
        Sets height
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object