Class Size


  • public class Size
    extends java.lang.Object
    • Field Summary

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

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

      • width

        public int width

        Width (horizontal size)

      • height

        public int height

        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