Package com.applitools.eyes
Class RectangleSize
java.lang.Object
com.applitools.eyes.RectangleSize
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRectangleSize(int width, int height) Creates a new RectangleSize instance.RectangleSize(RectangleSize source) -
Method Summary
-
Field Details
-
EMPTY
-
-
Constructor Details
-
RectangleSize
public RectangleSize(int width, int height) Creates a new RectangleSize instance.- Parameters:
width- The width of the rectangle.height- The height of the rectangle.
-
RectangleSize
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
getWidth
public int getWidth()- Returns:
- The rectangle's width.
-
getHeight
public int getHeight()- Returns:
- The rectangle's height.
-
parse
Parses a string into a {link RectangleSize} instance.- Parameters:
size- A string representing width and height separated by "x".- Returns:
- An instance representing the input size.
-
scale
Get a scaled version of the current size.- Parameters:
scaleRatio- The ratio by which to scale.- Returns:
- A scaled version of the current size.
-
equals
- Overrides:
equalsin classObject- Parameters:
obj- ARectangleSizeinstance to be checked for equality with the current instance.- Returns:
trueif and only if the input objects are equal by value,falseotherwise.
-
hashCode
-
toString
-