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 aHistoryViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedatacenterrecord component.entries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thehqSaleVelocityrecord component.item()Returns the value of theitemrecord component.Returns the value of thelastUploadTimerecord component.floatReturns the value of thenqSaleVelocityrecord component.region()Returns the value of theregionrecord component.floatReturns the value of theregularSaleVelocityrecord component.Returns the value of thestackSizeHistogramrecord component.Returns the value of thestackSizeHistogramHQrecord component.Returns the value of thestackSizeHistogramNQrecord component.final StringtoString()Returns a string representation of this record class.world()Returns the value of theworldrecord 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 aHistoryViewrecord class.- Parameters:
item- the value for theitemrecord componentworld- the value for theworldrecord componentlastUploadTime- the value for thelastUploadTimerecord componententries- the value for theentriesrecord componentdatacenter- the value for thedatacenterrecord componentregion- the value for theregionrecord componentstackSizeHistogram- the value for thestackSizeHistogramrecord componentstackSizeHistogramNQ- the value for thestackSizeHistogramNQrecord componentstackSizeHistogramHQ- the value for thestackSizeHistogramHQrecord componentregularSaleVelocity- the value for theregularSaleVelocityrecord componentnqSaleVelocity- the value for thenqSaleVelocityrecord componenthqSaleVelocity- the value for thehqSaleVelocityrecord component
-
-
Method Details
-
stackSizeHistogram
Returns the value of thestackSizeHistogramrecord component.- Returns:
- the value of the
stackSizeHistogramrecord component
-
stackSizeHistogramNQ
Returns the value of thestackSizeHistogramNQrecord component.- Returns:
- the value of the
stackSizeHistogramNQrecord component
-
stackSizeHistogramHQ
Returns the value of thestackSizeHistogramHQrecord component.- Returns:
- the value of the
stackSizeHistogramHQrecord 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 theitemrecord component.- Returns:
- the value of the
itemrecord component
-
world
Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-
lastUploadTime
Returns the value of thelastUploadTimerecord component.- Returns:
- the value of the
lastUploadTimerecord component
-
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-
datacenter
Returns the value of thedatacenterrecord component.- Returns:
- the value of the
datacenterrecord component
-
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-
regularSaleVelocity
public float regularSaleVelocity()Returns the value of theregularSaleVelocityrecord component.- Returns:
- the value of the
regularSaleVelocityrecord component
-
nqSaleVelocity
public float nqSaleVelocity()Returns the value of thenqSaleVelocityrecord component.- Returns:
- the value of the
nqSaleVelocityrecord component
-
hqSaleVelocity
public float hqSaleVelocity()Returns the value of thehqSaleVelocityrecord component.- Returns:
- the value of the
hqSaleVelocityrecord component
-