Class Rectangle2


  • public class Rectangle2
    extends java.lang.Object
    • Constructor Detail

      • Rectangle2

        public Rectangle2​(int x,
                          int y,
                          int w,
                          int h)
      • Rectangle2

        public Rectangle2​(Rectangle rectangle)
    • Method Detail

      • getX

        public int getX()
      • setX

        public void setX​(int x)
      • getY

        public int getY()
      • setY

        public void setY​(int y)
      • getW

        public int getW()
      • setW

        public void setW​(int w)
      • getH

        public int getH()
      • setH

        public void setH​(int h)
      • isValid

        public boolean isValid()
      • equals

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

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

        public boolean includes​(Rectangle2 rectangle)