java.lang.Objectjava.lang.Enum<Product.Size>
cz.muni.fi.pb162.ishop.Product.Size
public static enum Product.Size
Vyctovy typ reprezentujici velikost vyrobku.
Enum Constant Summary | |
---|---|
LARGE
|
|
MEDIUM
|
|
SMALL
|
Method Summary | |
---|---|
static Product.Size |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Product.Size[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Product.Size LARGE
public static final Product.Size MEDIUM
public static final Product.Size SMALL
Method Detail |
---|
public static Product.Size valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static Product.Size[] values()
for (Product.Size c : Product.Size.values()) System.out.println(c);