Class Size

    • Field Summary

      Fields 
      Modifier and Type Field Description
      int height
      The height (vertical size).
      int width
      The width (horizontal size).
    • Constructor Summary

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

      • width

        public int width

        The width (horizontal size).

      • height

        public int height

        The height (vertical size).

    • Constructor Detail

      • Size

        public Size()
        Constructor.
      • Size

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

      • getWidth

        public int getWidth()
        Gets width
      • setWidth

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

        public int getHeight()
        Gets height
      • setHeight

        public void setHeight​(int 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