public enum StockStatus extends Enum<StockStatus>
| Enum Constant and Description |
|---|
DISCONTINUED |
FULL |
LOW |
SOLD_OUT |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
String |
status() |
static StockStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StockStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StockStatus UNKNOWN
public static final StockStatus FULL
public static final StockStatus LOW
public static final StockStatus SOLD_OUT
public static final StockStatus DISCONTINUED
public static StockStatus[] values()
for (StockStatus c : StockStatus.values()) System.out.println(c);
public static StockStatus 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 String status()
Copyright © 2015. All rights reserved.