public class Dimensions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
height |
protected long |
width |
Constructor and Description |
---|
Dimensions(long height,
long width)
Dimensions for a photo or video.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getHeight()
Height of the photo/video.
|
long |
getWidth()
Width of the photo/video.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public Dimensions(long height, long width)
height
- Height of the photo/video.width
- Width of the photo/video.public long getHeight()
public long getWidth()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.