< prev index next >
core/JemmyCore/src/org/jemmy/Dimension.java
Print this page
@@ -28,11 +28,11 @@
import java.io.Serializable;
/**
* Replacement for java.awt.Dimension
- * @author Alexander Kouznetsov <mrkam@mail.ru>
+ * @author mrkam
*/
public class Dimension implements Serializable {
/**
* The width dimension; negative values can be used.
@@ -102,19 +102,17 @@
this.height = (int) Math.round(height);
}
/**
* {@inheritDoc}
- * @return
*/
public double getWidth() {
return width;
}
/**
* {@inheritDoc}
- * @return
*/
public double getHeight() {
return height;
}
@@ -162,15 +160,10 @@
public void setSize(int width, int height) {
this.width = width;
this.height = height;
}
- /**
- * Checks whether two dimension objects have equal values.
- * @param obj
- * @return
- */
@Override
public boolean equals(Object obj) {
if (obj instanceof Dimension) {
Dimension d = (Dimension)obj;
return (width == d.width) && (height == d.height);
< prev index next >