Package net.runelite.api
Enum GrandExchangeOfferState
- java.lang.Object
-
- java.lang.Enum<GrandExchangeOfferState>
-
- net.runelite.api.GrandExchangeOfferState
-
- All Implemented Interfaces:
Serializable
,Comparable<GrandExchangeOfferState>
public enum GrandExchangeOfferState extends Enum<GrandExchangeOfferState>
Describes the state of a Grand Exchange offer.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOUGHT
A buy offer that has completed.BUYING
A buy offer that is currently in progress.CANCELLED_BUY
A cancelled buy offer.CANCELLED_SELL
A cancelled sell offer.EMPTY
An empty slot.SELLING
A sell offer that is currently in progress.SOLD
A sell offer that has completed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GrandExchangeOfferState
valueOf(String name)
Returns the enum constant of this type with the specified name.static GrandExchangeOfferState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMPTY
public static final GrandExchangeOfferState EMPTY
An empty slot.
-
CANCELLED_BUY
public static final GrandExchangeOfferState CANCELLED_BUY
A cancelled buy offer.
-
CANCELLED_SELL
public static final GrandExchangeOfferState CANCELLED_SELL
A cancelled sell offer.
-
BUYING
public static final GrandExchangeOfferState BUYING
A buy offer that is currently in progress.
-
BOUGHT
public static final GrandExchangeOfferState BOUGHT
A buy offer that has completed.
-
SELLING
public static final GrandExchangeOfferState SELLING
A sell offer that is currently in progress.
-
SOLD
public static final GrandExchangeOfferState SOLD
A sell offer that has completed.
-
-
Method Detail
-
values
public static GrandExchangeOfferState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GrandExchangeOfferState c : GrandExchangeOfferState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GrandExchangeOfferState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-