public enum Resolution extends Enum<Resolution> implements Boundary
Enum Constant and Description |
---|
ALL_LAPTOP |
ALL_MOBILE |
LAPTOP |
LAPTOP_4K |
LAPTOP_LARGE |
MOBILE_LARGE |
MOBILE_MEDIUM |
MOBILE_SMALL |
TABLET |
Modifier and Type | Method and Description |
---|---|
String |
asMediaQuery() |
WidthBoundary |
getBoundary() |
int |
getMax() |
int |
getMin() |
static Resolution |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Resolution[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Resolution ALL_MOBILE
public static final Resolution ALL_LAPTOP
public static final Resolution MOBILE_SMALL
public static final Resolution MOBILE_MEDIUM
public static final Resolution MOBILE_LARGE
public static final Resolution TABLET
public static final Resolution LAPTOP
public static final Resolution LAPTOP_LARGE
public static final Resolution LAPTOP_4K
public static Resolution[] values()
for (Resolution c : Resolution.values()) System.out.println(c);
public static Resolution valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic WidthBoundary getBoundary()
public String asMediaQuery()
asMediaQuery
in interface Boundary
Copyright © 2018. All rights reserved.