NextApp Echo
1.0.5

nextapp.echo
Class Dimension

java.lang.Object
  extended bynextapp.echo.Dimension
All Implemented Interfaces:
java.io.Serializable

public class Dimension
extends java.lang.Object
implements java.io.Serializable

An immutable representation of a two-dimensional size (width and height).

See Also:
Serialized Form

Field Summary
private  int height
           
private  int width
           
 
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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

private int width

height

private int height
Constructor Detail

Dimension

public Dimension(int width,
                 int height)
Creates a new dimension of the given width and height.

Parameters:
width - The width of the dimension.
height - The height of the dimension.
Method Detail

equals

public boolean equals(java.lang.Object o)
Returns true if this coordinate is equivalent to the provided object.

Parameters:
o - The object to test this dimension for equality with.
Returns:
True if this dimension is equivalent to the provided object.

getHeight

public int getHeight()
Returns the height of this dimension.

Returns:
The height of this dimension.

getWidth

public int getWidth()
Returns the width of this dimension.

Returns:
The width of this dimension.

NextApp Echo
1.0.5