public class RectangleSize extends Object
| Constructor and Description |
|---|
RectangleSize(int width,
int height)
Creates a new RectangleSize instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns
true if and only if the input objects are equal by value. |
int |
getHeight()
Gets the rectangle's height.
|
int |
getWidth()
Gets the rectangle's width.
|
int |
hashCode() |
static RectangleSize |
parse(String size)
Returns a
RectangleSize instance representing the input
size. |
String |
toString() |
public RectangleSize(int width,
int height)
public int getWidth()
public int getHeight()
public static RectangleSize parse(String size)
RectangleSize instance representing the input
size.public boolean equals(Object obj)
true if and only if the input objects are equal by value.Copyright © 2014. All rights reserved.