public enum ProductImageSlot extends Enum<ProductImageSlot>
Enum Constant and Description |
---|
EIGHT |
FIVE |
FOUR |
MAIN |
ONE |
SEVEN |
SIX |
SWATCH |
THREE |
TWO |
Modifier and Type | Method and Description |
---|---|
static ProductImageSlot |
fromInt(int slot) |
int |
getSlot() |
boolean |
isNumeric() |
String |
toString() |
static ProductImageSlot |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProductImageSlot[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProductImageSlot MAIN
public static final ProductImageSlot SWATCH
public static final ProductImageSlot ONE
public static final ProductImageSlot TWO
public static final ProductImageSlot THREE
public static final ProductImageSlot FOUR
public static final ProductImageSlot FIVE
public static final ProductImageSlot SIX
public static final ProductImageSlot SEVEN
public static final ProductImageSlot EIGHT
public static ProductImageSlot[] values()
for (ProductImageSlot c : ProductImageSlot.values()) System.out.println(c);
public static ProductImageSlot 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 static ProductImageSlot fromInt(int slot)
public boolean isNumeric()
public int getSlot()
public String toString()
toString
in class Enum<ProductImageSlot>
Copyright © 2017. All rights reserved.