Class Resolution
- java.lang.Object
-
- com.amazonaws.services.devicefarm.model.Resolution
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Resolution extends Object implements Serializable, Cloneable
Represents the screen resolution of a device in height and width, expressed in pixels.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Resolution()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setWidth
public void setWidth(Integer width)
The screen resolution's width, expressed in pixels.
- Parameters:
width
- The screen resolution's width, expressed in pixels.
-
getWidth
public Integer getWidth()
The screen resolution's width, expressed in pixels.
- Returns:
- The screen resolution's width, expressed in pixels.
-
withWidth
public Resolution withWidth(Integer width)
The screen resolution's width, expressed in pixels.
- Parameters:
width
- The screen resolution's width, expressed in pixels.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHeight
public void setHeight(Integer height)
The screen resolution's height, expressed in pixels.
- Parameters:
height
- The screen resolution's height, expressed in pixels.
-
getHeight
public Integer getHeight()
The screen resolution's height, expressed in pixels.
- Returns:
- The screen resolution's height, expressed in pixels.
-
withHeight
public Resolution withHeight(Integer height)
The screen resolution's height, expressed in pixels.
- Parameters:
height
- The screen resolution's height, expressed in pixels.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Resolution clone()
-
-