public class NativeDimension
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
height
Area height.
|
int |
width
Area width.
|
Constructor and Description |
---|
NativeDimension(int width,
int height)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
NativeDimension |
copy()
Create a copy of this dimension object.
|
boolean |
equals(java.lang.Object o)
Checks whether
o represents a NativeDimension with same values. |
int |
hashCode()
Returns a hash code value for the object.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
public NativeDimension(int width, int height)
width
- Area width.height
- Area height.public NativeDimension copy()
public boolean equals(java.lang.Object o)
o
represents a NativeDimension
with same values.equals
in class java.lang.Object
o
- Another object to test for equality.true
if the object passed in represents a NativeDimension
with same
values for height
and width
.public int hashCode()
Object.hashCode()
for further
information.hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object