public enum ScreenSize extends java.lang.Enum<ScreenSize>
Modifier and Type | Method and Description |
---|---|
static ScreenSize |
fromString(java.lang.String value) |
int |
getMinSize() |
static java.util.Iterator<ScreenSize> |
largestToSmallest() |
static java.util.Iterator<ScreenSize> |
smallestToLargest() |
static ScreenSize |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScreenSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScreenSize XS
public static final ScreenSize SM
public static final ScreenSize MD
public static final ScreenSize LG
public static final ScreenSize XL
public static ScreenSize[] values()
for (ScreenSize c : ScreenSize.values()) System.out.println(c);
public static ScreenSize valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getMinSize()
public static java.util.Iterator<ScreenSize> smallestToLargest()
public static java.util.Iterator<ScreenSize> largestToSmallest()
public static ScreenSize fromString(java.lang.String value)