Class Size


  • public class Size
    extends java.lang.Object
    Represents the size (width and height) of an area of the screen.
    • Constructor Summary

      Constructors 
      Constructor Description
      Size​(int width, int height)
      Instantiates a new size.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      int height()
      Height.
      java.lang.String toString()  
      int width()
      Width.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Size

        public Size​(int width,
                    int height)
        Instantiates a new size.
        Parameters:
        width - the width
        height - the height
    • Method Detail

      • width

        public int width()
        Width.
        Returns:
        the width
      • height

        public int height()
        Height.
        Returns:
        the height
      • equals

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object