|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.Dimension
public class Dimension
An immutable representation of a two-dimensional size (width and height).
Constructor Summary | |
---|---|
Dimension(int width,
int height)
Creates a new dimension of the given width and height. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Returns true if this coordinate is equivalent to the provided object. |
int |
getHeight()
Returns the height of this dimension. |
int |
getWidth()
Returns the width of this dimension. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dimension(int width, int height)
width
- The width of the dimension.height
- The height of the dimension.Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object to test this dimension for equality with.
public int hashCode()
hashCode
in class java.lang.Object
public int getHeight()
public int getWidth()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |