public final class GraphingData
extends java.lang.Object
Items price history on the RuneScape GrandExchange.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
static GraphingData |
fromDatecodes(java.util.Map<java.lang.String,java.lang.Integer> daily,
java.util.Map<java.lang.String,java.lang.Integer> average)
Creates a set of
GraphingData from a Map of datecodes (milliseconds since the epoch of 1970-01-01T00:00:00Z) to prices. |
static GraphingData |
fromLocalDates(java.util.Map<java.time.LocalDate,java.lang.Integer> daily,
java.util.Map<java.time.LocalDate,java.lang.Integer> average)
|
java.util.OptionalInt |
getAveragePrice(java.time.LocalDate dateTime)
Gets the average price of an
Item given on a given LocalDate. |
ImmutableMap<java.time.LocalDate,java.lang.Integer> |
getAveragePrices()
Gets an
ImmutableMap of LocalDates to average prices. |
java.util.OptionalInt |
getDailyPrice(java.time.LocalDate dateTime)
Gets the daily price of an
Item on a given a LocalDate on the UTC time-zone. |
ImmutableMap<java.time.LocalDate,java.lang.Integer> |
getDailyPrices()
Gets an
ImmutableMap of LocalDates to daily prices. |
int |
hashCode() |
java.lang.String |
toString() |
public static GraphingData fromDatecodes(java.util.Map<java.lang.String,java.lang.Integer> daily, java.util.Map<java.lang.String,java.lang.Integer> average)
GraphingData from a Map of datecodes (milliseconds since the epoch of 1970-01-01T00:00:00Z) to prices.daily - The daily price values.average - The average price values.GraphingData.public static GraphingData fromLocalDates(java.util.Map<java.time.LocalDate,java.lang.Integer> daily, java.util.Map<java.time.LocalDate,java.lang.Integer> average)
daily - The daily price values.average - The average price values.GraphingData.public ImmutableMap<java.time.LocalDate,java.lang.Integer> getDailyPrices()
ImmutableMap of LocalDates to daily prices.ImmutableMap of LocalDates to daily prices.public java.util.OptionalInt getDailyPrice(java.time.LocalDate dateTime)
Item on a given a LocalDate on the UTC time-zone.dateTime - The LocalDate.OptionalInt containing the price, or OptionalInt.empty() if no daily value was recorded on this date.public ImmutableMap<java.time.LocalDate,java.lang.Integer> getAveragePrices()
ImmutableMap of LocalDates to average prices.ImmutableMap of LocalDates to average prices.public java.util.OptionalInt getAveragePrice(java.time.LocalDate dateTime)
Item given on a given LocalDate.dateTime - The LocalDate.OptionalInt containing the price, or OptionalInt.empty() if no average value was recorded on this date.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object