public class Resolution extends Object implements Serializable, Cloneable
Represents the screen resolution of a device in height and width, expressed in pixels.
| Constructor and Description |
|---|
Resolution() |
| Modifier and Type | Method and Description |
|---|---|
Resolution |
clone() |
boolean |
equals(Object obj) |
Integer |
getHeight()
The screen resolution's height, expressed in pixels.
|
Integer |
getWidth()
The screen resolution's width, expressed in pixels.
|
int |
hashCode() |
void |
setHeight(Integer height)
The screen resolution's height, expressed in pixels.
|
void |
setWidth(Integer width)
The screen resolution's width, expressed in pixels.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Resolution |
withHeight(Integer height)
The screen resolution's height, expressed in pixels.
|
Resolution |
withWidth(Integer width)
The screen resolution's width, expressed in pixels.
|
public void setWidth(Integer width)
The screen resolution's width, expressed in pixels.
width - The screen resolution's width, expressed in pixels.public Integer getWidth()
The screen resolution's width, expressed in pixels.
public Resolution withWidth(Integer width)
The screen resolution's width, expressed in pixels.
width - The screen resolution's width, expressed in pixels.public void setHeight(Integer height)
The screen resolution's height, expressed in pixels.
height - The screen resolution's height, expressed in pixels.public Integer getHeight()
The screen resolution's height, expressed in pixels.
public Resolution withHeight(Integer height)
The screen resolution's height, expressed in pixels.
height - The screen resolution's height, expressed in pixels.public String toString()
toString in class ObjectObject.toString()public Resolution clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.