| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public double | getHeight()
Implements abstract java. Returns the height of this |
| public double | getWidth()
Implements abstract java. Returns the width of this |
| public int | |
| public void | setSize(double
the new width for the width, double Dimension
objectthe new height for the height)Dimension
objectImplements abstract java. Sets the size of this |
| public String |
| height | back to summary |
|---|---|
| pack-priv double height | |
| width | back to summary |
|---|---|
| pack-priv double width | |
| Dimension2DDouble | back to summary |
|---|---|
| public Dimension2DDouble() | |
| Dimension2DDouble | back to summary |
|---|---|
| public Dimension2DDouble(double width, double height) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getHeight | back to summary |
|---|---|
| public double getHeight() Implements abstract java. Doc from java. Returns the height of this
| |
| getWidth | back to summary |
|---|---|
| public double getWidth() Implements abstract java. Doc from java. Returns the width of this
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setSize | back to summary |
|---|---|
| public void setSize(double width, double height) Implements abstract java. Doc from java. Sets the size of this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |