public class Size extends Object
Stores an ordered pair of integers, typically the width and height of a rectangle.
| Constructor and Description |
|---|
Size() |
Size(int width,
int height)
Initializes a new instance of the
Size struct. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
Size |
Clone() |
void |
CloneTo(Size that) |
boolean |
equals(Object obj) |
static boolean |
equals(Size obj1,
Size obj2) |
int |
getHeight()
Gets the vertical component of this
Size structure. |
int |
getWidth()
Gets the horizontal component of this
Size structure. |
int |
hashCode() |
void |
setHeight(int value)
Sets the vertical component of this
Size structure. |
void |
setWidth(int value)
Sets the horizontal component of this
Size structure. |
public Size()
public Size(int width,
int height)
Initializes a new instance of the Size struct.
width - The width component of the new Size structure.height - The height component of the new Size structure.public Size Clone()
public void CloneTo(Size that)
public final int getHeight()
Gets the vertical component of this Size structure.
Size structure.public final int getWidth()
Gets the horizontal component of this Size structure.
Size structure.public final void setHeight(int value)
Sets the vertical component of this Size structure.
value - The vertical component of this Size structure.public final void setWidth(int value)
Sets the horizontal component of this Size structure.
value - The horizontal component of this Size structure.Copyright © 2026. All rights reserved.