| Modifier and Type | Field and Description |
|---|---|
| private int | hash
Cache the hash code to make computing hashes faster. |
| private double | height
The height of the dimension. |
| private double | width
The width of the dimension. |
| Access | Constructor and Description |
|---|---|
| public | Dimension2D(double
the width width, double the height height)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this Dimension2D instance is the same as the obj argument; false otherwisethe reference object with which to compare obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public final double | |
| public final double | |
| public int | Returns: a hash code value for the Dimension2D object.Overrides java. Returns a hash code value for the Dimension2D object. |
| public String |
| hash | back to summary |
|---|---|
| private int hash Cache the hash code to make computing hashes faster. | |
| height | back to summary |
|---|---|
| private double height The height of the dimension.
| |
| width | back to summary |
|---|---|
| private double width The width of the dimension.
| |
| Dimension2D | back to summary |
|---|---|
| public Dimension2D(double width, double height) Constructs a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Indicates whether some other object is "equal to" this one. | |
| getHeight | back to summary |
|---|---|
| public final double getHeight() The height of the dimension.
| |
| getWidth | back to summary |
|---|---|
| public final double getWidth() The width of the dimension.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code value for the Dimension2D object.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this
| |