Record Class HistoryView
java.lang.Object
java.lang.Record
de.chojo.universalis.entities.views.HistoryView
- Record Components:
item
- itemworld
- worldlastUploadTime
- The last upload time for this endpointentries
- The historical sales.datacenter
- datacenterregion
- regionstackSizeHistogram
- A map of quantities to sale counts, representing the number of sales of each quantity.stackSizeHistogramNQ
- A map of quantities to NQ sale counts, representing the number of sales of each quantity.stackSizeHistogramHQ
- A map of quantities to HQ sale counts, representing the number of sales of each quantity.regularSaleVelocity
- The average number of sales per day, over the past seven days (or the entirety of the shown sales, whichever comes first).nqSaleVelocity
- The average number of NQ sales per day, over the past seven days (or the entirety of the shown sales, whichever comes first).hqSaleVelocity
- The average number of HQ sales per day, over the past seven days (or the entirety of the shown sales, whichever comes first).
public record HistoryView(Item item, @Nullable World world, LocalDateTime lastUploadTime, @Nullable List<MinimizedSaleView> entries, @Nullable DataCenter datacenter, @Nullable Region region, @Nullable Map<String,Integer> stackSizeHistogram, @Nullable Map<String,Integer> stackSizeHistogramNQ, @Nullable Map<String,Integer> stackSizeHistogramHQ, float regularSaleVelocity, float nqSaleVelocity, float hqSaleVelocity)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHistoryView
(Item item, @Nullable World world, LocalDateTime lastUploadTime, @Nullable List<MinimizedSaleView> entries, @Nullable DataCenter datacenter, @Nullable Region region, @Nullable Map<String, Integer> stackSizeHistogram, @Nullable Map<String, Integer> stackSizeHistogramNQ, @Nullable Map<String, Integer> stackSizeHistogramHQ, float regularSaleVelocity, float nqSaleVelocity, float hqSaleVelocity) Creates an instance of aHistoryView
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedatacenter
record component.entries()
Returns the value of theentries
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.float
Returns the value of thehqSaleVelocity
record component.item()
Returns the value of theitem
record component.Returns the value of thelastUploadTime
record component.float
Returns the value of thenqSaleVelocity
record component.region()
Returns the value of theregion
record component.float
Returns the value of theregularSaleVelocity
record component.Returns the value of thestackSizeHistogram
record component.Returns the value of thestackSizeHistogramHQ
record component.Returns the value of thestackSizeHistogramNQ
record component.final String
toString()
Returns a string representation of this record class.world()
Returns the value of theworld
record component.
-
Constructor Details
-
HistoryView
public HistoryView(Item item, @Nullable @Nullable World world, LocalDateTime lastUploadTime, @Nullable @Nullable List<MinimizedSaleView> entries, @Nullable @Nullable DataCenter datacenter, @Nullable @Nullable Region region, @Nullable @Nullable Map<String, Integer> stackSizeHistogram, @Nullable @Nullable Map<String, Integer> stackSizeHistogramNQ, @Nullable @Nullable Map<String, Integer> stackSizeHistogramHQ, float regularSaleVelocity, float nqSaleVelocity, float hqSaleVelocity) Creates an instance of aHistoryView
record class.- Parameters:
item
- the value for theitem
record componentworld
- the value for theworld
record componentlastUploadTime
- the value for thelastUploadTime
record componententries
- the value for theentries
record componentdatacenter
- the value for thedatacenter
record componentregion
- the value for theregion
record componentstackSizeHistogram
- the value for thestackSizeHistogram
record componentstackSizeHistogramNQ
- the value for thestackSizeHistogramNQ
record componentstackSizeHistogramHQ
- the value for thestackSizeHistogramHQ
record componentregularSaleVelocity
- the value for theregularSaleVelocity
record componentnqSaleVelocity
- the value for thenqSaleVelocity
record componenthqSaleVelocity
- the value for thehqSaleVelocity
record component
-
-
Method Details
-
stackSizeHistogram
Returns the value of thestackSizeHistogram
record component.- Returns:
- the value of the
stackSizeHistogram
record component
-
stackSizeHistogramNQ
Returns the value of thestackSizeHistogramNQ
record component.- Returns:
- the value of the
stackSizeHistogramNQ
record component
-
stackSizeHistogramHQ
Returns the value of thestackSizeHistogramHQ
record component.- Returns:
- the value of the
stackSizeHistogramHQ
record component
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
item
Returns the value of theitem
record component.- Returns:
- the value of the
item
record component
-
world
Returns the value of theworld
record component.- Returns:
- the value of the
world
record component
-
lastUploadTime
Returns the value of thelastUploadTime
record component.- Returns:
- the value of the
lastUploadTime
record component
-
entries
Returns the value of theentries
record component.- Returns:
- the value of the
entries
record component
-
datacenter
Returns the value of thedatacenter
record component.- Returns:
- the value of the
datacenter
record component
-
region
Returns the value of theregion
record component.- Returns:
- the value of the
region
record component
-
regularSaleVelocity
public float regularSaleVelocity()Returns the value of theregularSaleVelocity
record component.- Returns:
- the value of the
regularSaleVelocity
record component
-
nqSaleVelocity
public float nqSaleVelocity()Returns the value of thenqSaleVelocity
record component.- Returns:
- the value of the
nqSaleVelocity
record component
-
hqSaleVelocity
public float hqSaleVelocity()Returns the value of thehqSaleVelocity
record component.- Returns:
- the value of the
hqSaleVelocity
record component
-