@ExperimentalApi @Immutable public final class Resolution extends Object implements Comparable<Resolution>
<width>x<height>. toString() and
parse(String) methods can be used to serialize/deserialize valid resolutions to/from strings, and are
compatible with each other.| Modifier and Type | Field and Description |
|---|---|
static Resolution |
R1024_768 |
| Constructor and Description |
|---|
Resolution(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Resolution that) |
boolean |
equals(Object o) |
int |
getHeight() |
int |
getWidth() |
int |
hashCode() |
static Resolution |
parse(String resolutionString)
Parse
|
String |
toString() |
public static final Resolution R1024_768
public static Resolution parse(@Nonnull String resolutionString)
resolutionString - public int getWidth()
public int getHeight()
public int compareTo(@Nonnull Resolution that)
compareTo in interface Comparable<Resolution>Copyright © 2015 Atlassian. All rights reserved.