public final class Item
extends java.lang.Object
GrandExchange
.Modifier and Type | Class and Description |
---|---|
static class |
Item.Builder |
Modifier and Type | Method and Description |
---|---|
static Item.Builder |
builder(int id) |
boolean |
equals(java.lang.Object o) |
PriceTrend |
getCurrentPrice()
Gets the current
PriceTrend of the item. |
java.util.Optional<PriceChange> |
getDay180()
Gets an
Optional containing the item's PriceChange over the last 180 days. |
java.util.Optional<PriceChange> |
getDay30()
Gets an
Optional containing the item's PriceChange over the last 30 days. |
java.util.Optional<PriceChange> |
getDay90()
Gets an
Optional containing the item's PriceChange over the last 90 days. |
java.lang.String |
getDescription()
Gets the description of the item.
|
java.lang.String |
getIcon()
Gets the URL to the item's inventory sprite.
|
java.lang.String |
getIconLarge()
Gets the URL to the item's large sprite.
|
int |
getId()
Gets the id of the item.
|
java.lang.String |
getName()
Gets the name of the item.
|
PriceTrend |
getTodaysPrice()
Gets the
PriceTrend of the item today. |
java.lang.String |
getType()
Gets the type of item.
|
java.lang.String |
getTypeIcon()
Gets the URL to the type of item.
|
int |
hashCode() |
boolean |
isMembersOnly()
Checks whether this item is only accessible to members.
|
java.lang.String |
toString() |
public static Item.Builder builder(int id)
public java.lang.String getIcon()
public java.lang.String getIconLarge()
public int getId()
public java.lang.String getType()
public java.lang.String getTypeIcon()
public java.lang.String getName()
public java.lang.String getDescription()
public PriceTrend getCurrentPrice()
PriceTrend
of the item.PriceTrend
of the item.public PriceTrend getTodaysPrice()
PriceTrend
of the item today.PriceTrend
of the item today.public boolean isMembersOnly()
true
if so, false
otherwise.public java.util.Optional<PriceChange> getDay30()
Optional
containing the item's PriceChange
over the last 30 days.Optional
containing the item's PriceChange
over the last 30 days, or Optional.empty()
if there is no PriceChange
for the last 30 days.public java.util.Optional<PriceChange> getDay90()
Optional
containing the item's PriceChange
over the last 90 days.Optional
containing the item's PriceChange
over the last 90 days, or Optional.empty()
if there is no PriceChange
for the last 90 days.public java.util.Optional<PriceChange> getDay180()
Optional
containing the item's PriceChange
over the last 180 days.Optional
containing the item's PriceChange
over the last 180 days, or Optional.empty()
if there is no PriceChange
for the last 180 days.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object