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 Resolutionclone()booleanequals(Object obj)IntegergetHeight()The screen resolution's height, expressed in pixels.IntegergetWidth()The screen resolution's width, expressed in pixels.inthashCode()voidsetHeight(Integer height)The screen resolution's height, expressed in pixels.voidsetWidth(Integer width)The screen resolution's width, expressed in pixels.StringtoString()Returns a string representation of this object; useful for testing and debugging.ResolutionwithHeight(Integer height)The screen resolution's height, expressed in pixels.ResolutionwithWidth(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Resolution clone()
-
-